Add basic versioning history support for master view
as with actual data versioning, we only support Person thus far
This commit is contained in:
parent
7340ef1f9b
commit
0b68d56ddb
7 changed files with 354 additions and 6 deletions
|
@ -42,9 +42,8 @@ def AssociationProxyField(name, **kwargs):
|
|||
setattr(self.parent.model, self.name,
|
||||
self.renderer.deserialize())
|
||||
|
||||
def value(model):
|
||||
from rattail.db import model
|
||||
return getattr(model, name, None)
|
||||
def value(obj):
|
||||
return getattr(obj, name, None)
|
||||
|
||||
kwargs.setdefault('value', value)
|
||||
return ProxyField(name, **kwargs)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue