google-code-export / django-values

Automatically exported from code.google.com/p/django-values

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Generating permissions with translated verbose_name

GoogleCodeExporter opened this issue · comments

When creating permissions dbsettings uses cls._meta.verbose_name. I've
marked  this as a translatable string and this causes problems. Permissions
like 'can_edit_<django.utils.functional.__proxy__ object at
0x43705a8c>_settings' are being created and this violates the 50 char limit.

A solution is to use cls._meta.verbose_name_raw. I've attached a diff.

Regards,
Simon

Original issue reported on code.google.com by simoncelen@gmail.com on 4 Jul 2007 at 5:36

Attachments:

Nice catch. I just checked in the patch.

Original comment by gulop...@gmail.com on 4 Jul 2007 at 8:16

  • Changed state: Fixed