Hi All

Just wonderin how to do a 'self join'? havent found anything in docs, so If
I've missed it - appoligies, please let me know.

this is the kind of thing I mean:
----
class some_object(meta.Model):
  object_name = meta.CharField(maxlength=200)
  another_field = meta.IntegerField(default=0)
  parent_object = meta.ForeignKey(some_object)
----
The problem I have with this is when I run
 django-admin.py sql appname
is "some_object is not defined", which I guess makes sense.
So, short of an intermediate table, how may I achieve this?

thx
M.Beagle

Reply via email to