I'm not sure that reference is going to answer my question but, in any
case, there appears to be lots of good stuff in there. My old deskjet
will hate me for printing that page out, but I better try.
--
You received this message because you are subscribed to the Google Groups
"Django users" gro
I have no template for the form. I'm using the automatic admin.
Then that's a whole different issue.
https://docs.djangoproject.com/en/1.3/ref/contrib/admin/
Check this out, and read up on how to specify your own form.
--
You received this message because you are subscribed to the Google
On Aug 2, 12:40 pm, Shawn Milochik wrote:
> You don't need to add the fields to your model. If the extra fields
> don't appear on your page it's probably because you didn't add them to
> the template.
I have no template for the form. I'm using the automatic admin.
--
You received this message
You don't need to add the fields to your model. If the extra fields
don't appear on your page it's probably because you didn't add them to
the template.
I'm assuming you're using something like form.as_p, which probably
doesn't pick up the extra fields.
--
You received this message because y
On Aug 2, 11:16 am, Shawn Milochik wrote:
> Just add the fields to your ModelForm and then do whatever you want in
> your save() override.
Thanks for your reply, Shawn. Adding the fields in my ModelForm
doesn't seem to do the trick, by itself. The field doesn't appear in
the form unless I also
Just add the fields to your ModelForm and then do whatever you want in
your save() override.
The example you found has extra code the author added to the model, but
there's nothing "standard" there. It's just something that suited that
use-case.
Remember that all of Django is "just" Python,
Hi all,
How to add a field to a form that is not a model field?
I want my form for model class X to have a field whose value I will
save to another model class (by overriding the the save method in
model class X).
I think my answer is here...
http://www.hindsightlabs.com/blog/2010/02/11/adding-
7 matches
Mail list logo