google-code-export / django-values

Automatically exported from code.google.com/p/django-values
1 stars 1 forks source link

Generating permissions with translated verbose_name #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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:

GoogleCodeExporter commented 9 years ago
Nice catch. I just checked in the patch.

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