Hello,

Am 08.12.21 um 20:25 schrieb Alex Dehnert:
> With some frequency, I end up with models who contents are approximately 
> constant. Are there good ways of handling this?

If I understand your question correctly, you have a model that you always query 
like:

        plans = Plan.objects.all()

and that is changed so infrequently that `plans` could be a read-only global, 
updated only on the rare ocassions it is changed in Admin (or shell etc.)? This 
would require to properly encapsulate the writes to the global, about which I 
too (if this covers your question) would be interested in getting help.

Best regards,
Carsten

-- 
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/d5c949b7-b6a9-e2bb-b021-eca8786d68d9%40cafu.de.

Reply via email to