﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
21198	@python_2_unicode_compatible, abstract models, working on 1.4 but causing infinite loop on 1.5.	James Pic	Aymeric Augustin	"On Django 1.4.2, I can call unicode(my_city) without any problem. my_city being an instance of City defined here: https://github.com/yourlabs/django-cities-light/blob/master/cities_light/models.py

As you can see:

- City inherits from Base abstract model,
- City is decorated by @python_2_unicode_compatible,
- Base is also decorated by @python_2_unicode_compatible,
- Base defines __str__
- City does not define __str__

When these conditions are met then Django 1.5 gets stuck in an infinite loop. The solution is to remove @python_2_unicode_compatible decorator from City.

Traceback: https://travis-ci.org/yourlabs/django-autocomplete-light/jobs/11953680

I don't know if this a lack of documentation or a bug."	Bug	closed	Utilities	1.5	Normal	fixed			Accepted	0	0	0	0	0	0
