Proxy models, or otherwise using models that don't have extra fields

16 views
Skip to first unread message

Paul Winkler

unread,
Jan 28, 2011, 3:52:45 PM1/28/11
to django-polymorphic
Occasionally one might want to have a model that has no extra needs
from the database, but might want to behave differently , eg. use a
slightly different template in views, etc.

With vanilla Django models, one can use Proxy Models for this purpose.

Has anyone tried making a proxy model that inherits from a
PolymorphicModel?
Does it "just work", or ... not?
In this use case, it'd be nice to avoid having the separate table with
no extra fields.
Reply all
Reply to author
Forward
0 new messages