3👍
You can change the underlaying queryset for the form field: How do I filter ForeignKey choices in a Django ModelForm?
- Django Rest Framework 3.1 breaks pagination.PaginationSerializer
- How would I override the perform_destroy method in django rest framework?
- Testing a custom Django template filter
3👍
To override the choices for a foreign key field in Django admin app, write a formfield_for_foreignkey
method.
- How can I determine if instance of class from Django model is subclass of another model?
- Specific way of requiring one of two fields in django model definition
- Pass initial value to a modelform in django
Source:stackexchange.com