Non-database fields on the admin side?

9 views
Skip to first unread message

medhat

unread,
Aug 4, 2006, 11:36:49 AM8/4/06
to Django users
Hi,

Is there an easy way to create filds on the admin side that don't have
database columns behind them? I am thinking of something whose value
will drive some functionality in the save() method in the model, but
does not need to be saved.

If this does not exist, how about the following feature suggestion:
Have one of the parameters in the Field to specify that this field
should not have a database column, and another field that will specify
a model function that should be called to populate that field when it
is displayed.

--
Regards,
Medhat

Adrian Holovaty

unread,
Aug 12, 2006, 8:42:05 PM8/12/06
to django...@googlegroups.com
On 8/4/06, medhat <medhat...@gmail.com> wrote:
> Is there an easy way to create filds on the admin side that don't have
> database columns behind them? I am thinking of something whose value
> will drive some functionality in the save() method in the model, but
> does not need to be saved.

Hey Medhat,

What you described is not currently possible, but that's a really
interesting idea. Let's put it on the list for when we rework the
admin application.

Adrian

--
Adrian Holovaty
holovaty.com | djangoproject.com

Reply all
Reply to author
Forward
0 new messages