Skip to content

Instantly share code, notes, and snippets.

@zsiciarz
Created June 8, 2010 12:37
Show Gist options
  • Save zsiciarz/429952 to your computer and use it in GitHub Desktop.
Save zsiciarz/429952 to your computer and use it in GitHub Desktop.
--- D:/Python26/Lib/site-packages/django_notification-0.1.4-py2.6.egg/notification/views.py Tue Jun 08 14:21:04 2010
+++ D:/Python26/Lib/site-packages/django_notification-0.1.4-py2.6.egg/notification/views2.py Tue Jun 08 14:21:12 2010
@@ -19,7 +19,7 @@
@login_required
def notices(request):
notice_types = NoticeType.objects.all()
- notices = Notice.objects.notices_for(request.user, on_site=True)
+ notices = Notice.objects.notices_for(request.user, on_site=True).select_related(depth=1)
settings_table = []
for notice_type in NoticeType.objects.all():
settings_row = []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment