Thank you Nelson. I will try this option.

On Friday, October 12, 2018 at 9:57:31 AM UTC-5, Nelson Varela wrote:
>
> 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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/6efea4b1-83e5-4ff1-a2ff-ed74df8557bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to