From f77ca392735c58e12f3fa5e4f7badf4c6e13f7ae Mon Sep 17 00:00:00 2001 From: Ernesto Rico-Schmidt Date: Sun, 3 Jul 2011 20:38:43 +0200 Subject: removed note__isnull. it may causes confusion. 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) -- cgit v0.10.2