Re: Django call_command from Admin

2022-10-20 Thread Tega Ukavwe
pattern. I'd really appreciate your response on this. Regards, Tega Ukavwe Python Like English On Thu, Oct 20, 2022 at 5:06 PM Aziz Mek wrote: > Hi All, > > I was wondering if you have come across the following: > > I have a field in the model that's empty, when the user

Re: Django call_command from Admin

2022-10-20 Thread Tega Ukavwe
Do a little read up on post_save signal. Below is a link to a good start point for you: https://simpleisbetterthancomplex.com/tutorial/2016/07/28/how-to-create-django-signals.html I hope this helps you in your search. Best Wishes Aziz. On Thu, Oct 20, 2022 at 5:06 PM Aziz Mek wrote: > Hi All,

Re: Is there a way to pass arbitrary argument from serializer.save to model.save method

2022-09-24 Thread Tega Ukavwe
Hello Sencer, You could override the serializer class' create method. https://www.django-rest-framework.org/api-guide/serializers/#saving-instances Hope this helps you mate. Cheers, Tega Ukavwe Python Like English On Fri, Sep 23, 2022 at 7:21 PM Sencer Hamarat wrote: > Hi, > >