Re: Set model form initial value?

2009-11-18 Thread Ilya Polosuhin
Just use "initial" keyword on creation form class myForm(forms.Form): test = forms.CharField(label = _('test'), max_length=255, required = True) myForm(initial = {'test': 'test string'}). If you use form that generated from model: class myForm(forms.Form): class Meta: model = myMod

Re: Can I change the title of an admin page?

2009-11-17 Thread Ilya Polosuhin
The folder for admin template is path/to/your/project/templates/admin So in your case you should put your own template to ~/webapps/django/sw1/templates/admin/ On Tue, Nov 17, 2009 at 7:45 PM, lzantal wrote: > Don't copy the original change_list.html file over there. > Create a new empty change_

Re: MySQL error subquery returns more than 1 row

2009-11-17 Thread Ilya Polosuhin
I don't fully understood your question. Of course I have more than one row at test_mymodel2 SQL query was formed by django-ORM. I just call print (MyModel.objects.filter(key_to_mymodel2 = MyModel2.objects.all()))._as_sql()) and write here output. And I also googled for this MySQL error and found ho