Hi there I am having a problem with ForeignKey(Class) in my models.py if the Class it comes before the class then it says I should put it in quotes.
ForeignKey('Class') put when i run python manage.py validate to check its ok it doesn't like it here is my models.py: from django.db import models class Group(models.Model): groupname = models.CharField(maxlength=60) leader = models.ForeignKey('Members') ##error with this line class Members(models.Model): username = models.CharField(maxlength=30) group = models.ManyToManyField(Group) I have had to put the Members class after the Group class because ive used a ManytoMany in the members class referencing the Group class can anyone help me please nik --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---