1👍
Override the save()
method of the model and check if the field’s value is None
.
0👍
If I understand you right about the dynamic part, this is related to a Django foreign key FAQ, and James Bennett’s Django tips: auto-populated fields (see The Holy Grail subhead :-).
- [Django]-Using django template tags inside external JavaScript
- [Django]-How to make a filter in Django Listview queryset
- [Django]-Debugging django signals' problems
- [Django]-Celery worker will not pick up a new task after the current one is finished
- [Django]-Facebook Signed Request Decoding Incorrect Padding
Source:stackexchange.com