#4346 closed (invalid)
Model names are not translateable
Reported by: | Owned by: | Malcolm Tredinnick | |
---|---|---|---|
Component: | Internationalization | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Unreviewed | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
From my POV a model name is not translateable so it should not be called with _(...) on def str()
Happens with AnonymousUser in contrib/auth/models.py
Attachments (1)
Change History (4)
Changed 16 years ago by
Attachment: | modelclass.diff added |
---|
comment:1 Changed 16 years ago by
Has patch: | set |
---|
comment:2 Changed 16 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
The {{{str}} method is not returning the model name. It's returning a string representation of the model that just happens to be the same as the model name and string representations are often translated. Plus, model names can be translated (they aren't by default, but they are if you specify verbose_name and mark it as translatable). So I don't think this is a bug.
Strips _()