Re: QuerySet filtering weirdness for dates with 3-digit years

2012-04-17 Thread Evan Carmi
On Sun, Apr 15, 2012 at 6:14 AM, Aymeric Augustin < aymeric.augus...@polytechnique.org> wrote: > On 14 avr. 2012, at 21:25, Evan Carmi wrote: > > >>> Poll.objects.filter(pub_date__year=1) #We should get the poll p (but > we don't) > [] > > > The docs [1] say that the __year lookup "takes a four di

Django File-based session doesn't expire

2012-04-17 Thread ej
File-based session backend doesn't expire, unlike db-backed and cache-based sessions. I'm not too sure if this is a bug or an intended (but undocumented) design. I am under the impression that all session backends should behave similarly. If this is an intended design, can someone explains why

Possible BUG in inline_formset factory

2012-04-17 Thread [w]
hi, I'm on django 1.3 using class based generic views. So in my use case, i have a modelForm defined with custom fields. something along the lines of class MF_B(forms.ModelForm): stuff = forms.MultipleChoiceField(queryset=None, required=False) class Meta: model=B as the code abo

Re: Migrating to 1.4

2012-04-17 Thread Anssi Kääriäinen
On Apr 17, 5:38 pm, Carl Meyer wrote: > Since it seems that the additional test-suite runtime from the new > default password hasher is enough to be a blocker for migrations to 1.4 > in some cases, I've opened a ticket for documenting this > workaround:https://code.djangoproject.com/ticket/18157

Re: Migrating to 1.4

2012-04-17 Thread Carl Meyer
Since it seems that the additional test-suite runtime from the new default password hasher is enough to be a blocker for migrations to 1.4 in some cases, I've opened a ticket for documenting this workaround: https://code.djangoproject.com/ticket/18157 Carl signature.asc Description: OpenPGP dig

Re: Migrating to 1.4

2012-04-17 Thread Mikhail Korobov
Thanks man! PASSWORD_HASHERS = ('django.contrib.auth.hashers.MD5PasswordHasher',) in test_settings.py made tests of our project 2x faster (I was not upgrading from 1.3). понедельник, 16 апреля 2012 г., 20:33:31 UTC+6 пользователь Dan Fairs написал: > > Hi, > > Both of these were fixed by using

Re: Migrating to 1.4

2012-04-17 Thread Ryan Kaskel
My project has about half as many tests but boy did the run slowly on my Django 1.4 upgrade branch. On Monday, 16 April 2012 15:33:31 UTC+1, Dan Fairs wrote: > > > The first big regression for us was that our test suite took 20% longer to > run. I traced this down to the new default password has