jrief / django-angular

Let AngularJS play well with Django
http://django-angular.awesto.com/
MIT License
1.23k stars 293 forks source link

Fix on field's identifier when add_prefix() is used in form objects #140

Closed juanmitaboada closed 9 years ago

juanmitaboada commented 9 years ago

Recently we have been using add_prefix() function on form objects to push Django to render field's name (and other identifiers) with a specific prefix in it. We found out that the Django-Angular was rendering properly everything except the errors coming directly from Django (custom errors added on our clean() methods inside forms).

We have seen that the prefixed field's name is only available in html_name not in name, which keeps the form's original name. To make Django-Angular to render this last

jrief commented 9 years ago

Well noticed! Thanks