lazybird / django-solo

Helps working with singletons - things like global settings that you want to edit from the admin site.
Other
896 stars 85 forks source link

Disambiguate cache key for similarly named models #140

Closed ahumeau closed 1 month ago

ahumeau commented 2 months ago

Two models with the same name in different apps would previously get the same cache key. Including the model's module in the cache key fixes this.

johnthagen commented 1 month ago

@ahumeau Could you provide a unit test?

ahumeau commented 1 month ago

@johnthagen sure :). I just push them.

johnthagen commented 1 month ago

@ahumeau Thank you for your contribution.

ahumeau commented 1 month ago

My pleasure, thanks for your work maintaining this project!