On Nov 25, 6:24 pm, ChrisK <[EMAIL PROTECTED]> wrote:
> > Well..you aren't passing auth_id to the template, you are passing
> > form. auth_id is a field inside your template. Can you post your
> > template?
>
> Oh, sorry - my oversight. Template is
>
> <form action="/map/fences/newFence/" method="POST">
> <input type="hidden" name="auth_id" value="{{auth_id}}"
> id="id_auth_id" />
> <p><label for="id_teaser">Reminder String:</label>
>     <input id="id_teaser" type="text" name="teaser" maxlength="40" /></
> p>
> <p><label for="id_url">URL of document:</label>
>     <input type="text" name="url" id="id_url" /></p>
> <p><label for="id_address">Address of interest:</label>
>     <input type="text" name="address" id="id_address" /></p>
> <p><label for="id_range">Range (in meters):</label>
>     <input type="integer" name="range" id="id_range" /></p>
> <input type="submit" value="Submit" />
> </form>
>
> I guess I'm not clear how to access stuff from inside the form!

Check this out: 
http://docs.djangoproject.com/en/dev/topics/forms/#displaying-a-form-using-a-template

Try using the form.as_p or form.as_table methods. If that doesn't work
for you, you can render each field yourself.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to