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-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

Using South in Django 1.7+

2015-10-08 Thread Remco Gerlich
I want to run South migrations in a Django 1.7+ installation. I know that's now how it's usually done, but we have a special needs use case. Our users have SQLite files that model their project; the SQL schema used has changed over time, and users are on many different versions. Our application i

Re: Formset questions: data vs. initial values

2015-10-08 Thread Carsten Fuchs
Hi Shawn, many thanks for your reply. Am 07.10.2015 um 15:54 schrieb Shawn Milochik: You /can/ use ModelForms for this. You don't need an active instance. Thanks, I'll definitively check this out! However, using a ModelForm wastes performance when the POST request is processed, doesn't it?

formset concurrency control

2015-10-08 Thread Carsten Fuchs
Dear Django fellows, as far as I understand this, there seem to be two kinds of concurrency control: - the one that occurs between request and save, as addressed by e.g. [1] and [2], - the one that occurs between GET request and POST request, especially with formsets. I'm currently trying

Re: Using South in Django 1.7+

2015-10-08 Thread Carl Meyer
Hi Remco, On 10/08/2015 04:26 AM, Remco Gerlich wrote: [snip] > Can South run on Django 1.7+ at all? Nope. At least not last I tried, and I don't think anyone has done anything on it since. It looked like it would need some major updating, since South integrates closely with the database backends

Flakey tests and django.db.utils.InterfaceError: connection already closed

2015-10-08 Thread thinkwell
I could use some assistance in troubleshooting a psycopg2.InterfaceError problem that has erratic behavior. Here is the test module suite that I'm running to test these models , and in this state all the tests in the module pass. Howe

wsgi.py apache segmentation fault

2015-10-08 Thread Eugenio Trumpy
Hello everybody, I'm very not so expert on django, I'm at the first experience. I'm using django as backhand of geonode application. Geonode works quite fine, however during a save map request from client side I got this apache2 segmentation fault: [Thu Oct 08 15:30:38.037330 2015] [core:error]

Overriding template view function in Django app.

2015-10-08 Thread sonu kumar
I have installed third party app(Mezzanine) whose urls are configured to use their view functions not View Class. Source code from mezzanine.blog.urls urlpatterns = patterns("mezzanine.blog.views",16

formset concurrency control

2015-10-08 Thread Daniel Roseman
Can you explain further why you think the pk is not sufficient? Ordering by name, or adding and removing entities, does not change the pk of other entities; indeed that's the whole point of a pk. What exactly are you concerned about? -- DR. -- You received this message because you are subscri

Re: "RuntimeError: Error creating new content types."

2015-10-08 Thread Roger Hunwicks
On 1.8 `--fake-initial` only works if you have a single initial migration per app. We don't because we have additional migrations to load data and create database triggers, etc. In 1.9 this will be handled by the `initial = True` setting on the Migration class. Until then, we are using: ./ma

Re: formset concurrency control

2015-10-08 Thread Tim Graham
I think the problem is also described in https://code.djangoproject.com/ticket/15574. Probably if we had a simple solution, that ticket wouldn't be open for 5 years. :-) On Thursday, October 8, 2015 at 12:48:34 PM UTC-4, Daniel Roseman wrote: > > Can you explain further why you think the pk is n

Re: formset concurrency control

2015-10-08 Thread Carsten Fuchs
Hi Daniel, Am 08.10.2015 um 18:48 schrieb Daniel Roseman: Can you explain further why you think the pk is not sufficient? Ordering by name, or adding and removing entities, does not change the pk of other entities; indeed that's the whole point of a pk. What exactly are you concerned about?