Thanks Tom mjob=Job.objects.create(name=name,*city=city,tags=tag*)
Here i shouldn't use to create a object for foreign key and many_to_many field; we have to get it from it's id right? because the key property violates then, city=City.objects.get(id=city_id) tag=Tag.objects.get(id=tag_id) mjob=Job.objects.create(name=name,*city=city,tags=tag*) it seems also problem!! -- 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.