I like to do something like that in a app models.py:

<code>
class Unite(models.Model):
    responsable = models.ForeignKey(Personne, verbose_name='The
Chief', blank=True)
    ...

class Personne(models.Model):
    unite = models.ForeignKey(Unite,null=True)
    ....
</code>

And I have this error message in devel server:
annuaire.directory: name 'Personne' is not defined


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to