Any way to tell it not to auto save to db?
examples,
where publications and articles are many to many..
a_publication.articles = [article11]
or
request.user.groups = [group1]
On Jul 9, 5:06 pm, zweb <traderash...@gmail.com> wrote:
> Assume there is many to many between publication and article. (example
> from django docs)
>
> By default following stmt will auto save the relationship between
> a_publication and article11 in database.
>
> a_publication.articles = [article11]
>
> how do I get that so that it changes only in memory (for session) but
> does not get saved in DB unless explicitly told to save?
>
> [I cannot change the table structure to remove many to many]
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment