views:

28

answers:

1

Hello!

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 want to change it.

How can I get rid of this annoying field?

A: 

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

Ignacio Vazquez-Abrams
oh! http://docs.djangoproject.com/en/dev/topics/db/models/#overriding-model-methods maybe even this will work. thanks!
valya