override save() twice in django model!

42 views
Skip to first unread message

RITIK SONI

unread,
May 1, 2021, 9:41:34 AM5/1/21
to Django users
am i able to override save() method of a django model twice?

Kunal Solanke

unread,
May 1, 2021, 9:56:05 AM5/1/21
to Django users
I don't think so, why not do in one function or you can use pre save and pist save signals

On Sat, May 1, 2021, 19:11 RITIK SONI <rtks...@gmail.com> wrote:
am i able to override save() method of a django model twice?

--
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 django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b56f7397-66c1-44e5-8502-a83717861d54n%40googlegroups.com.

RITIK SONI

unread,
May 1, 2021, 11:32:08 AM5/1/21
to django...@googlegroups.com
yea! ig you are right! we cant override it twice.

Reply all
Reply to author
Forward
0 new messages