Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tags count in view #158

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
amended get_active_projects method bug
josmas committed Jul 19, 2012
commit 0474e3640c7c9b11057d10bc012aad3c4afb6aff
2 changes: 1 addition & 1 deletion lernanta/apps/projects/models.py
Original file line number Diff line number Diff line change
@@ -496,7 +496,7 @@ def get_active_projects(projects=None):
or under development
"""
if not projects:
projects = Projects.objects.all()
active_projects = Projects.objects.all()
active_projects = Project.objects.filter(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should be

active_projects = projects.filter(

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

woops! what was I thinking? :)
will have some time over the weekend to amend this. thanks for the review!

archived=False,
deleted=False,