Skip to content
Snippets Groups Projects
Commit f77ca392 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

removed note__isnull. it may causes confusion.

parent d3bc8379
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,7 @@ class NoteAdmin(admin.ModelAdmin): ...@@ -34,7 +34,7 @@ class NoteAdmin(admin.ModelAdmin):
if db_field.name == 'timeslot': if db_field.name == 'timeslot':
one_year_ago = datetime.today() - timedelta(days=365) one_year_ago = datetime.today() - timedelta(days=365)
shows = request.user.shows.all() 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) return super(NoteAdmin, self).formfield_for_foreignkey(db_field, request, **kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment