'RelatedManager' object is not iterable

2009-08-04 Thread british.assassin
Hi, In the views.py for my app I have the following: def index(request): categories = models.Category.objects.all() return render_to_response("forum/index.html", {'categories':categories}) And in the template file I am trying to iterate through these via doing: {% for category in categ

Re: 'RelatedManager' object is not iterable

2009-08-04 Thread british.assassin
{forum.name}} {% endfor %} {% endfor %} {% else %} This forum has no categories {% endif %} {% endblock %} Base.html: http://www.w3.org/1999/ xhtml"> {% block title %}{% endblock %} {% block body %}{% endblock %} On Aug 4, 7:29 pm, Alex Gaynor wrote: > On Tue, Aug 4, 2009 at 1:1

Re: 'RelatedManager' object is not iterable

2009-08-04 Thread british.assassin
Yeah, that did it, thanks. I didn't even notice that, lol Thanks again. On Aug 4, 8:56 pm, Daniel Roseman wrote: > On Aug 4, 8:15 pm, "british.assassin" > wrote: > > > > > > > {% extends "base.html" %} > > > {% block title %}EvoW

Subclassing RegistrationForm in django-registration

2009-10-09 Thread british.assassin
Hi, I am trying to add some more fields for new members to fill in on registration to my site by subclassing the RegistrationForm from the django-registration app. My question is: is there away to do something like this for saving: class PlayerRegistrationForm(RegistrationForm): first_name

Re: Templating wart

2009-10-09 Thread british.assassin
You could do this: {% for cell in row %} {% if forloop.first and row.url %}{{cell}} {% else %} {{cell}} {% endif %} {% endfor %} On Oct 9, 10:06 am, Chris Withers wrote: > Hi All, > > I have a piece of template that looks like this: > > >   > >    {% for cell in row %} > >     > >    {% if

Re: Subclassing RegistrationForm in django-registration

2009-10-09 Thread british.assassin
Yeah I did notice that after I posted, lol. Thanks for the advice, it works fine now. On Oct 9, 12:02 pm, Daniel Roseman wrote: > On Oct 9, 11:03 am, "british.assassin" > wrote: > > > > > Hi, > > > I am trying to add some more fields for new members t