jrief / django-angular

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

Automatically generated form names broken in Python 3 #333

Closed wolph closed 6 years ago

wolph commented 6 years ago

When Python 3 is used the automatically generated form name return a b'.....' type string which angular doesn't like.

My guess is that it's caused by this: https://github.com/jrief/django-angular/blob/7bd33dd8b48486be11d987611099bc8b74d068c0/djng/forms/angular_base.py#L301

There should a string cast/decode over there.

wolph commented 6 years ago

Excellent! Thanks for the quick fix @jrief :)

jrief commented 6 years ago

Thanks for reporting. Please recheck with HEAD from master, if everything is OK, I'll release a new version.

wolph commented 6 years ago

I've just tested it, works without a problem now.

jrief commented 6 years ago

Version 2.0.3 is available from https://pypi.org/project/django-angular/