On Mon, Jun 8, 2009 at 5:29 AM, phred78 <phre...@gmail.com> wrote:

>
> I think you need separate admin registers, like so:
>
> admin.site.register (Patient)
> admin.site.register (Doctor)
> admin.site.register (Pills)
> admin.site.register (Orders)
>
> You'd only put two together if you created some special instructions
> for the admin. Then you'd have something like:
>
> admin.site.register (Patient, PatientAdmin)
>
> I'm not sure this is what you asked for. Check it here:
> http://docs.djangoproject.com/en/1.0/ref/contrib/admin/
>
> Cheers,
>
> Fred
>
> On Jun 8, 6:45 am, jayvandal <jayvan...@gmail.com> wrote:
> > I have four tables
> > 1 Patient
> >       2 has many doctors
> >             3  doctor issues pills
> >                     4  order many pills
> > when I run syncdb I get the 3 levels showing in adminstrative screen.
> > I can't get it to show the order screen (4)
> >
> > I tried the admin.site.register (Patient, Doctor, Pills, Orders)
> >
> > It tells me I can have only 3, and doesn't refer to Orders
> > Any help, Please
> > Jim
> >
>


-- 
"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're allowed to do admin.site.register([Model1, Model2, Model3]) to
register multiple models.  Note the creation of the list there, not directly
calling the method with the objects as argumne.ts

Alex

--~--~---------~--~----~------------~-------~--~----~
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