On Tue, May 12, 2009 at 2:43 AM, Malcolm Tredinnick <
malc...@pointy-stick.com> wrote:

>
> On Mon, 2009-05-11 at 22:19 -0700, George Song wrote:
> > On 5/11/2009 8:55 PM, rpupkin77 wrote:
> > > Hi, can I use the same table in two different models and surface
> > > different data in each, model, particularly in the admin panel?
> >
> > Sounds like a job for proxy models[1], each with its own default manager.
>
> Or create the table some other way (perhaps with a third model) and use
> unmanaged models (Meta.managed = False) for the two models you're
> talking about. Overlaying models onto an already existing table is
> normally a use-case for setting managed=False.
>
> Regards,
> Malcolm
>
>
>
> >
>
Indeed, Django works fine (as far as I know) if a table actually has a
superset of the fields defined on the model.

Alex

-- 
"I disapprove of what you say, but I will defend to the death your right to
say it." --Voltaire
"The people's good is the highest law."--Cicero

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to