mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-05-14 08:03:10 +00:00
Fixed db_column option not taken into account. Resolves issue #83.
This commit is contained in:
parent
5affe7940c
commit
56926d5801
1 changed files with 6 additions and 0 deletions
|
|
@ -113,6 +113,12 @@ class TranslationField(object):
|
|||
self.verbose_name = build_localized_verbose_name(
|
||||
translated_field.verbose_name, language)
|
||||
|
||||
def get_attname_column(self):
|
||||
attname = self.get_attname()
|
||||
column = build_localized_fieldname(
|
||||
self.translated_field.db_column or self.translated_field.name, self.language) or attname
|
||||
return attname, column
|
||||
|
||||
def south_field_triple(self):
|
||||
"""
|
||||
Returns a suitable description of this field for South.
|
||||
|
|
|
|||
Loading…
Reference in a new issue