>
> You could make a custom form for your admin which is a model form which 
> points to EmployeeSchedule. And in the form its init you can change the 
> queryset of the events field:
>

self.fields['events'].queryset = WineryEvents.objects.filter(publish='Y').
filter(event_date__gte=datetime.now()).order_by('event_date')

 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/bc032148-9263-4ae9-adaa-51f90d8f3cb2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to