This works for me David,
class Staff(models.Model):
name = models.CharField(maxlength=50)
reportsTo = models.ForeignKey("self", blank=True, null=True)
def __repr__(self):
return "%s" % self.name
class Admin:
list_display = ('name',)
This is with the magic-remova
Strange, since for me a similar case works in the current
magic-removal. And your DB is up-to-date with the Django model?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
2 matches
Mail list logo