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
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
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
3 matches
Mail list logo