jazzband / django-dbtemplates

Django template loader for database stored templates with extensible cache backend
https://django-dbtemplates.readthedocs.io
Other
253 stars 154 forks source link

ADD_DEFAULT_SITE not working (despite tests passing) #49

Open jnns opened 10 years ago

jnns commented 10 years ago

The current site is added correctly via the post_save signal and the tests are working fine for Template creation and updating via the shell, but when saved via a ModelForm (for example through the Django admin), instance.sites gets cleared shortly after again in form.save_m2m.

This behaviour is analogous to what's described in Django Ticket 14649.

mpasternak commented 2 years ago

Hi, is the problem still applicable? I don't exactly understand what is wrong here, would you mind submitting a minimal non-working code example?