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
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
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
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
4 matches
Mail list logo