On 8 Cze, 17:31, grimmus <graham.col...@gmail.com> wrote:
> Hi,
>
> I have a simple blog application
>
> I would like to be able to create a post and assign it to multiple
> categories
>
> category = models.ForeignKey(BlogCategory)
ForeignKey allows you to assign post only to one category,
I think you need to use ManyToManyField.
--
Tomasz Zieliński
http://pyconsultant.eu
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---