Skip to content

Commit

Permalink
Fix #992, add support for db_column in djpeewee
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Jun 23, 2016
1 parent 247ba3b commit 19da243
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion playhouse/djpeewee.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def _translate_model(self,
db_column=model_field.column)

elif converted:
attrs[model_field.name] = converted()
attrs[model_field.name] = converted(
db_column=model_field.db_column)

klass = type(options.object_name, (Model,), attrs)
klass._meta.db_table = options.db_table
Expand Down

0 comments on commit 19da243

Please sign in to comment.