Re: how to copy data per user

2015-10-08 Thread Stephen J. Butler
Lots of ways to do it. Maybe most efficient is: UserProfile.objects.filter(user__in=u_dst).update(url=up_src.url, home_address=up_src.home_address, phone_number=up_src.phone_number) Where u_dst is a list/tuple/iterable of destination users, and up_src is the UserProfile of the source user. On Th

Re: how to copy data per user

2015-10-08 Thread Jun Tanaka
Hello Tim, 2015年10月7日水曜日 21時36分59秒 UTC+9 Tim Graham: > > I don't think you've provided enough details about your models for anyone > to provide an answer. > > Probably, you are right. Simply, any model with below for per users is fine. from django.contrib.auth.models import User Say somethi

Re: how to copy data per user

2015-10-07 Thread Tim Graham
I don't think you've provided enough details about your models for anyone to provide an answer. p.s. Django 1.6 is unsupported and has unfixed security vulnerabilities so you should try to upgrade to a supported version. https://www.djangoproject.com/download/#supported-versions On Wednesday, O