Created
June 8, 2010 12:37
-
-
Save zsiciarz/429952 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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