Sometimes it's nice to be able to add custom code to the save method of objects in the Django Admin. So, when editing an object on the Admin object detail page (change form), adding the following method override to your ModelAdmin in admin.py will allow you to add custom code to the save function.
In admin.py:
This is documented in the Django Docs, but I found it particularly useful.
In admin.py:
class MyModelAdmin(admin.ModelAdmin): def save_model(self, request, obj, form, change): # custom stuff here obj.save()
This is documented in the Django Docs, but I found it particularly useful.
3 Best Places to Play Free Baccarat - Wolverione
ReplyDeleteFree Baccarat – Online Baccarat Tournament is an exciting experience that's all about betting on your favorite card. It's 인카지노 much more 바카라 traditional and 메리트카지노