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
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_
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
3 matches
Mail list logo