On 9 Mar, 16:12, Casey Greene <[email protected]> wrote: > In that case, I believe you can remove it with > > user.province_set.remove(province) > user.save() >
User.save() is unnecessary here because remove() changes m2m intermediate table and save() changes only User table. > > I am going from memory here. I tried to find this in the docs to make > sure but couldn't. > Here you are: http://docs.djangoproject.com/en/1.2/ref/models/relations/#django.db.models.fields.related.RelatedManager.remove -- Tomasz Zielinski 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 [email protected]. 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.

