AUTH_USER_MODEL does not accept sub application

2014-10-26 Thread Frankline
I am having problems with my custom user model while using Django 1.7.1 and Python 3.4. I have declared a Custom user model in an apps.users.AuthUser. I then have another application (apps.pets) that will use the AuthUser as a ForeignKey in a Pet model. See below: class Pet(models.Model): owne

Re: Decimal value allowed for auto primary key

2014-10-26 Thread Kafex
Ok, that makes sense, thanks for the reply! On Sunday, October 26, 2014 7:34:06 PM UTC-4, Tom Evans wrote: > > On Sun, Oct 26, 2014 at 12:37 AM, Kafex > > wrote: > > If I have the following model... > > class FruitType(models.Model): > > name = models.CharField(max_length=255) > > > > And

Re: Decimal value allowed for auto primary key

2014-10-26 Thread Tom Evans
On Sun, Oct 26, 2014 at 12:37 AM, Kafex wrote: > If I have the following model... > class FruitType(models.Model): > name = models.CharField(max_length=255) > > And I insert some records... > FruitType.objects.create(name="Apple") > FruitType.objects.create(name="Orange") > > Why is this valid?

Re: TEST_MIRROR not working?

2014-10-26 Thread Ilya Baryshev
>Ilya: Can you test if using TEST_MIRROR fixes the issue you are seeing? Both settings have same effect. I've slightly modified testcase to demonstrate replica queries are not the same as master queries (no fixtures): def test_fixture(self): MyModel.objects.using('default').create(na

Re: TEST_MIRROR not working?

2014-10-26 Thread Ramiro Morales
Actually, in 1.7.x both should work. Ilya: Can you test if using TEST_MIRROR fixes the issue you are seeing? On Oct 26, 2014 9:19 AM, "Tom Evans" wrote: > On Sat, Oct 25, 2014 at 5:21 PM, Ilya Baryshev wrote: > > Hey all! > > > > I was writing tests for queries that use replica database, so I t

Re: Dutch translation of Django Tutorial

2014-10-26 Thread Tomáš Ehrlich
HI Erwin, It won't be more than 8 pages of documentation: Overview, Installation and six parts of tutorial. I don't think it's possible to finish more in three weeks from now. Right now is being translated the 1st part of tutorial. I'll publish it somewhere for review once it's ready. Thank yo

Re: Dutch translation of Django Tutorial

2014-10-26 Thread Erwin Sprengers
Hi, Depending on the size, I can help to review. Erwin Op zaterdag 25 oktober 2014 13:36:11 UTC+2 schreef Tomáš Ehrlich: > > Hello everyone, > there are two things that going to happen in next month: > > 1. Django Under the Hood conference in Amsterdam > 2. (Hopefully) I’ll finish SaaS for manag

Re: TEST_MIRROR not working?

2014-10-26 Thread Tom Evans
On Sat, Oct 25, 2014 at 5:21 PM, Ilya Baryshev wrote: > Hey all! > > I was writing tests for queries that use replica database, so I tried using > TEST_MIRROR setting. > TEST_MIRROR promises "connection to slave will be redirected to point at > default. > As a result, writes to default will appear