Below is a model I created to track departments. When I give it "admin = meta.Admin()" I am then allowed to change my "supervisor", "manager", and "parent" fields. But if I define my own, how do I reference them? I tried something like: ("Management", {'fields': ('supervisor', 'managers')}) but it throws a key error, not knowing what 'supervisor' is.
Thanks class Department(meta.Model): fields = ( meta.CharField('name', maxlength=128, blank=True), meta.ForeignKey(auth.User, rel_name="supervisor", related_name="supervised"), meta.ManyToManyField(auth.User, rel_name="managers", related_name="managed"), meta.ForeignKey("self", rel_name="parent", related_name="children"), ) admin = meta.Admin() def __repr__(self): return self.name