> Seems like I'm headed in the right direction, I made the changes you
> suggested but now I'm getting a warning.

> <snip>
>
> Exception Type: Warning at /admin/posts/article/add/
> Exception Value: Incorrect integer value:
> '<django.db.models.fields.related.ManyRelatedManager object at
> 0xfd8d50>' for column 'site_id' at row 1
>
> Not sure what's going on...

I don't know how your Article and other such models are defined, by
are you guaranteed to have a valid Site instance for instance.site or
can that value be None? If you're in DEBUG mode (settings.DEBUG=True),
you should be able to see the value of 'site' in your browser. If not,
try printing 'site' and 'site.pk' just before you make the site.add()
call.

Also, what version of Django are you on?

-Rajesh D


--~--~---------~--~----~------------~-------~--~----~
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