mirror of
https://github.com/Hopiu/django-modeltranslation.git
synced 2026-04-10 08:30:59 +00:00
Fix db_column (close #210).
This commit is contained in:
parent
7024268836
commit
b8cf1ef015
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ class TranslationField(object):
|
|||
def get_attname_column(self):
|
||||
attname = self.get_attname()
|
||||
if self.translated_field.db_column:
|
||||
column = build_localized_fieldname(self.translated_field.db_column)
|
||||
column = build_localized_fieldname(self.translated_field.db_column, self.language)
|
||||
else:
|
||||
column = attname
|
||||
return attname, column
|
||||
|
|
|
|||
Loading…
Reference in a new issue