register: use ModelForm, and print all errors
This commit is contained in:
@ -1,9 +1,7 @@
|
||||
<html>
|
||||
<form method='post'>
|
||||
{% csrf_token %}
|
||||
<input type="text" name="username" placeholder="username">
|
||||
<input type="text" name="current_password" placeholder="current_password">
|
||||
<input type="text" name="new_password" placeholder="new_password">
|
||||
{{form.as_p}}
|
||||
<input type='submit'>
|
||||
</form>
|
||||
</html>
|
@ -1,7 +1,7 @@
|
||||
<html>
|
||||
<form method='post'>
|
||||
{% csrf_token %}
|
||||
{{ form }}
|
||||
{{ form.as_p }}
|
||||
<input type='submit'>
|
||||
</form>
|
||||
</html>
|
@ -1,7 +1,7 @@
|
||||
<html>
|
||||
<form method='post'>
|
||||
{% csrf_token %}
|
||||
{{ form }}
|
||||
{{ form.as_p }}
|
||||
<input type='submit'>
|
||||
</form>
|
||||
</html>
|
Reference in New Issue
Block a user