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.
- [Answer]-Django: Double-Escape XML Entities
- [Answer]-Subquery in select Django
- [Answer]-Django cloudinary upload remote image via url – invalid file name
- [Answer]-Return more than one id in django
- [Answer]-How to output django_filters.RangeFilter text boxes inline?
Source:stackexchange.com