save() method not working in shell. What are possible causes?

22 views
Skip to first unread message

Artur Rączka

unread,
Jan 18, 2023, 5:56:46 PM1/18/23
to Django users
Hello guys,

What am I missing or doing wrong? 

>>> dublin.price
40
>>> dublin.price = 100
>>> dublin.price
100
>>> dublin.save()
>>> dublin.price
40


Artur Rączka

unread,
Jan 19, 2023, 3:03:53 AM1/19/23
to django...@googlegroups.com
Ok. I solved the problem myself. The pre_save signal was changing my output every time I used save() method.


--
You received this message because you are subscribed to a topic in the Google Groups "Django users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/django-users/H-WR_IYvNYQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/ca959a16-a448-4e73-8846-fb5cba341f9an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages