#4102: Allow UPDATE of only specific fields in model.save() -------------------------------------+------------------------------------- Reporter: Collin Grady | Owner: cgrady <cgrady@…> | Status: new Type: New feature | Version: SVN Component: Database layer | Resolution: (models, ORM) | Triage Stage: Accepted Severity: Normal | Needs documentation: 1 Keywords: update fields sql | Patch needs improvement: 1 row table modified | UI/UX: 0 Has patch: 1 | Needs tests: 0 | Easy pickings: 0 | -------------------------------------+------------------------------------- Changes (by Kronuz):
* cc: Kronuz (added) Comment: With the current patch in multitable inheritance, when I modify an already existing object and save it, it only saves data to the parent. This happens because `_reset_modified_attrs()` is called during the topmost first parent's save_base() call and further updates are ignored since `_modified_attrs` no longer have anything after that. I'm attaching a new patch to fix this. -- Ticket URL: <https://code.djangoproject.com/ticket/4102#comment:67> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.