Re: sorting inspectdb output

2008-06-03 Thread [EMAIL PROTECTED]
I don't think there is an option for that.. On Jun 3, 3:16 pm, Vidja <[EMAIL PROTECTED]> wrote: > Thanks Carole, > > Didn't know this option. Is there a way to tell inspectdb to do that? > Would be a nice option. For now I will just change the file. > > VidJa > > On 3 jun, 05:54, "[EMAIL PROTECTE

Re: sorting inspectdb output

2008-06-03 Thread Vidja
Thanks Carole, Didn't know this option. Is there a way to tell inspectdb to do that? Would be a nice option. For now I will just change the file. VidJa On 3 jun, 05:54, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > If a class is defined after it is being referenced, you can just > modify th

Re: sorting inspectdb output

2008-06-02 Thread [EMAIL PROTECTED]
If a class is defined after it is being referenced, you can just modify the code to reference the class name with quotes around it and it should alleviate any errors. class Table1(models.Model): table1_id = models.AutoField(primary_key=True) table2 = models.ForeignKey('Table2') # notice the

sorting inspectdb output

2008-05-30 Thread Vidja
I'm using manage inspectdb to get an initial list of models for my database. The only thing is that I'm spending a lot of time sorting the models (>300) in such a way that each class is in the right order regarding the foreign key dependencies. (making sure each model that points to another is bel