On Monday, 25 September 2017 21:16:04 UTC+1, Zev wrote:
>
> So say I have data "a", "b", and "c". It would display itself as
>
> Object: a
>
> Object: b
>
> Object: c
>
> If I added d to the form, it would add
>
> Object: d
>
> What I'm hoping to do is add an increment to this so it displays itself as
>
> Object 1: a
>
> Object 2: b
>
> Object 3: c
>
> And add d as
>
> Object 4:
>
> How would I go about implementing this? Another thing I wanted to know is 
> whether I can change the "Post:" comment next to the form. Right now my 
> form displays itself with "Post:" at the left side. Is there a way to edit 
> this?
>
>
>
I'm not sure what you're asking. If you want to enumerate objects within a 
for loop in the template, just use `{{ forloop.counter }}`. 
--
DR. 

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/089b376a-4916-4054-abb9-6698d18cdc78%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to