One thing I'm not sure of it, how to tell if a particular Admin page is
triggering a particular Admin instance.
On Tuesday, September 13, 2022 at 11:27:54 AM UTC-5 Mike Kilmer wrote:
> After having upgraded from Django 3 to 4 the save_model() method isn't
> running, though the form it imports does.
>
> ```
> class MyCoolMapAdmin(SuperUserChangeOnlyMixIn, FilterByOwnerAdmin):
> form = MyCoolModelForm
> print("this prints on app initialization")
>
> def save_model(self, request, obj, form, change):
> print("this never runs")
>
> class MyCoolModelForm(forms.ModelForm):
>
> def clean(self):
> print("this does run")
> ```
>
> The `save_model` method doesn't seem to run for new or updated form
> submission from the "MyCool" admin page.
>
> Thank you.
>
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/29eeac28-112a-4935-b0c8-62e48b6a49den%40googlegroups.com.