On June 27, 2022 4:36:49 AM CDT, "ro...@tonic-solutions.com"
<ro...@tonic-solutions.com> wrote:
>I know I could set `something like `instance.save(update_fields=[field for
>field in instance._meta.fields if field.name != "_search")` but it would
>need to be set on every save for that model throughout the application,
>which seems like a lot of technical debt and likely to trip up other
>developers as they maintain the application.
You could override the save method on your model to always exclude _search from
update_fields. That way you DRY.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/83A9F868-A97E-4102-87AB-381A75FB6D88%40fattuba.com.