[Answer]-Sometimes it saves sometimes not in Django

0👍

you may pass the method another parameter

def add_points_cont(contractor=None , action_name):

you pass the contractor into method

1👍

Its not clear what you are asking, but it sounds like you are reading back a cached value from the database. In django querysets are lazy, which means that you may not be seeing the latest updated values from the database, and this is normal.

Leave a comment