Rearrange some imports to ensure rattail.db.model
comes last
this is necessary for Continuum versioning
This commit is contained in:
parent
db0eaf8eb0
commit
7340ef1f9b
3 changed files with 10 additions and 8 deletions
|
@ -28,8 +28,6 @@ from __future__ import unicode_literals, absolute_import
|
|||
|
||||
import formalchemy as fa
|
||||
|
||||
from rattail.db import model
|
||||
|
||||
|
||||
def AssociationProxyField(name, **kwargs):
|
||||
"""
|
||||
|
@ -45,6 +43,7 @@ def AssociationProxyField(name, **kwargs):
|
|||
self.renderer.deserialize())
|
||||
|
||||
def value(model):
|
||||
from rattail.db import model
|
||||
return getattr(model, name, None)
|
||||
|
||||
kwargs.setdefault('value', value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue