Re: Ordering of code

2023-03-03 Thread Michael Starr
/questions/4162456/forward-declaration-of-classes > https://erdantic.drivendata.org/v0.4/forward-references/ > > Regards, > /d > > -- Original Message -- > From "Michael Starr" > To "Django users" > Date 3/4/2023 7:43:18 AM > Subject Ord

Re: Ordering of code

2023-03-03 Thread David Nugent
-- Original Message -- From "Michael Starr" To "Django users" Date 3/4/2023 7:43:18 AM Subject Ordering of code Does anyone know why in django models (and I don't know how it is in etc. python), you can define a function below, and use it above in the

Ordering of code

2023-03-03 Thread Michael Starr
Does anyone know why in django models (and I don't know how it is in etc. python), you can define a function below, and use it above in the code, but a class can't reference a class defined later in the code, or it won't find it? That seems like beyond stupid to me. Michael -- You received t