Hi, I have a class like so
class ContactEnquiry(models.Model): name = models.CharField(max_length=100) subject = models.CharField(max_length=100) email = models.EmailField() message = models.CharField(max_length=100) enquiry_date = models.DateTimeField('enquiry date') def __unicode__(self): return self.name when i make an instance of this class it throws the error : invalid literal for int() with base 10: 'name value' when i pass an int as the first parameter it works fine but i thought an autonumber would be passed as the id value ? Thanks for any help --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---