Hello , i have a big problem for my little know for simple diagnostic python manage.py shell
where am I wrong? >>> from siteupdate.proxy.models import listurl >>> a=listurl() >>> a.urlip="pippo" >>> a.servicetypelist="pluto" Traceback (most recent call last): File "<console>", line 1, in <module> File "/usr/lib/python2.5/site-packages/django/db/models/fields/ related.py", line 273, in __set__ self.field.name, self.field.rel.to._meta.object_name)) ValueError: Cannot assign "'pluto'": "listurl.servicetypelist" must be a "servicetype" instance. il mio file model.py from django.db import models class listurl(models.Model): servicetypelist = models.ForeignKey('servicetype') urlip=models.CharField(max_length=200,verbose_name="domino/ip da gestire") Thanks you -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.