Hi, I have got problem with django's UserCreationForm. It's very strange because ween I:
view:
from django.contrib.auth.forms import UserCreationForm
from django.shortcuts import render_to_response
form = UserCreationForm()
context = {'form' : form}
render_to_response('something.html', context)
template:
...
{% block content %}
{{form}}
{% endblock %}
I get:
<class 'django.contrib.auth.forms.UserCreationForm'>
Stuff like {{form.as_table}} or similar doesn't work. "For" tags scream that:
aught an exception while rendering: 'ModelFormMetaclass' object is not iterable
I don't know where is the problem. I simply can't view in template labels and fields. HELP:p