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

removed get_queryset and overide get method in event_details view #47

Merged
merged 2 commits into from
Sep 10, 2014

Conversation

omkarvijay5
Copy link
Member

The main part of implementing get queryset is to know that the event object with show=True or False. This is known by implementing a get_queryset in the current implementation which returns events which has show=True. So if for an event, get_queryset is checking that if the particular event is there in the get_queryset or not, If not we are raising a 404 error(as we dont want to display the event with show=False). As it should not be a part of get_queryset i removed it and override the get method to implement the same

akshar-raaj added a commit that referenced this pull request Sep 10, 2014
removed get_queryset and overide get method in event_details view
@akshar-raaj akshar-raaj merged commit 8c0f4c6 into master Sep 10, 2014
@akshar-raaj akshar-raaj deleted the checking_event_detail_queryset branch September 10, 2014 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants