i have a model like this:
USER_TYPES=(("pro","Professional"),("beg","Beginner"))
mdl_user(models.Model):
name=models.CharField(max_length=128)
utype=models.CharField(max_length=3,Choices=USER_TYPES)
i want track user changes using django-reversion
on display changes using default example
from reversion.helpers import generate_patch_html
generate_patch_html(old_version, new_version, "utype", cleanup="semantic")
return
<span>pro<ins>beg</ins></span>
but i want return Choices values like this:
<span>Professional<ins>Beginner</ins></span>
i found there is no such things for django reversion
i use this helper to get display of choices