Re: how many levels allowed in models

2009-06-08 Thread phred78
Cool tip! > 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 --~--~-~--~~~---~--~~ You received this message bec

Re: how many levels allowed in models

2009-06-08 Thread Alex Gaynor
On Mon, Jun 8, 2009 at 5:29 AM, phred78 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 instruct

Re: how many levels allowed in models

2009-06-08 Thread phred78
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.

Re: how many levels allowed in models

2009-06-08 Thread Russell Keith-Magee
On Mon, Jun 8, 2009 at 1:45 PM, jayvandal 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 scre

how many levels allowed in models

2009-06-07 Thread jayvandal
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, Pill