#28344: Add for_update parameter to Model.refresh_from_db() -------------------------------------+------------------------------------- Reporter: Patryk Zawadzki | Owner: (none) Type: New feature | Status: new Component: Database layer | Version: dev (models, ORM) | Severity: Normal | Resolution: Keywords: | Triage Stage: Accepted Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Aivars KalvÄns): Just another idea: using `from_queryset` allows us to specify `select_related` on the queryset and with a couple of lines in `refresh_from_db` we could make it work and avoid extra queries when accessing related fields later. -- Ticket URL: <https://code.djangoproject.com/ticket/28344#comment:35> 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 unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/0107018c5a8f918a-21eb349c-d049-4301-9fb4-a11fbbfaa4ef-000000%40eu-central-1.amazonses.com.