开发者

django sites default

开发者 https://www.devze.com 2022-12-21 01:00 出处:网络
Many \'reusable apps\' require django-sites. There is annoying field \"publish on\" in admin interface, which I can\'t exclude because it has no default parameter (so the entry will be published nowhe

Many 'reusable apps' require django-sites. There is annoying field "publish on" in admin interface, which I can't exclude because it has no default parameter (so the entry will be published nowhere. I tried). The model is described in the 'reusable app' so I don't w开发者_开发百科ant to change it.

How can I get rid of this annoying field?


Catching the pre_save signal will allow you to inject a default value.

0

精彩评论

暂无评论...
验证码 换一张
取 消