Re: Inlines defined before use?

2012-10-08 Thread Lachlan Musicman
On Sat, Oct 6, 2012 at 4:29 AM, Bill Freeman wrote: > There are a few special cases in which Django works hard to allow you > to specify a string that will be looked up later. And you can use > names in function and method definitions that will be defined by the > time the

Re: Inlines defined before use?

2012-10-05 Thread Bill Freeman
There are a few special cases in which Django works hard to allow you to specify a string that will be looked up later. And you can use names in function and method definitions that will be defined by the time the function is called. But python does not, in general, support forward references.

Inlines defined before use?

2012-10-03 Thread Lachlan Musicman
Hola, I'm finding that if my inlines aren't defined before use in the admin.py, I'm getting the following errors: inlines=('MyModelInline',) "issubclass() arg 1 must be a class" Errors inlines=(MyModelInline,) "name 'MyModelInline' is not defined" This is a minor issue, easily solved by