summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-07-03 18:38:43 (GMT)
committerErnesto Rico-Schmidt <e.rico.schmidt@gmail.com>2011-07-03 18:38:43 (GMT)
commitf77ca392735c58e12f3fa5e4f7badf4c6e13f7ae (patch)
tree48498b897c75e7a84e116167d288c8fb7aebf348
parentd3bc837909b7583828b0cbe81446374e0bb86f0b (diff)
removed note__isnull. it may causes confusion.
-rw-r--r--program/admin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/admin.py b/program/admin.py
index ad9d725..9c744e3 100644
--- a/program/admin.py
+++ b/program/admin.py
@@ -34,7 +34,7 @@ class NoteAdmin(admin.ModelAdmin):
if db_field.name == 'timeslot':
one_year_ago = datetime.today() - timedelta(days=365)
shows = request.user.shows.all()
- kwargs['queryset'] = TimeSlot.objects.filter(show__in=shows, start__gt=one_year_ago, note__isnull=True)
+ kwargs['queryset'] = TimeSlot.objects.filter(show__in=shows, start__gt=one_year_ago)
return super(NoteAdmin, self).formfield_for_foreignkey(db_field, request, **kwargs)