Re: Model Form crashing on Foreign Key

2010-01-10 Thread fest
I feel like I could jump out of the window... Just spent 4 hours of debugging :/ Any idea which is the last revision which is not affected by this bug? On 11 Janv., 07:02, Sontek wrote: > On Jan 10, 6:17 pm, Sontek wrote: > > > On Jan 10, 12:23 pm, Sontek wrote: > > > > So I'm trying to cre

Re: DRY: max length not taken from Model.field when using ModelForm

2009-11-09 Thread fest
form fields. That's why I thought other field options were not taken into account. Reinis On 7 nov., 21:27, Tomasz Zieliński wrote: > On 7 Lis, 18:25, fest wrote: > > > From my experience, max_length is not taken into account when you > > override modelfieldin formfield.

Re: DRY: max length not taken from Model.field when using ModelForm

2009-11-07 Thread fest
>From my experience, max_length is not taken into account when you override model field in form field. In this case I don't know of any trivial way to read other field properties from model description. Regards, Reinis On 20 okt., 17:54, Karen Tracey wrote: > On Thu, Oct 15, 2009 at 12:30 PM,

Re: Deploying Django to production environment

2009-11-04 Thread fest
Hi John, It doesn't really matter where you place your application code- just don't put it in a place accessible by your web server, so nobody can access your source code. I have apache configured to serve php websites from /var/sharedwww/ site1/www, but my django site resides in /var/sharedwww/si

DRY in django.contrib.auth

2009-11-04 Thread fest
Hello, I'm not sure if I should post this message in django-developers or here, but before I bother django developers, I wanted to discuss this issue with django users. I stumbled across this one when I was creating a custom User class, by inheriting from django's built in User class. I extended U