Render DataSyncChange.obtained
as humanized timestamp within UI.
This commit is contained in:
parent
18a5f16b2c
commit
864300b927
|
@ -28,6 +28,7 @@ from __future__ import unicode_literals
|
||||||
|
|
||||||
from rattail.db import model
|
from rattail.db import model
|
||||||
|
|
||||||
|
from tailbone import forms
|
||||||
from tailbone.views import MasterView
|
from tailbone.views import MasterView
|
||||||
|
|
||||||
|
|
||||||
|
@ -45,6 +46,7 @@ class DataSyncChangeView(MasterView):
|
||||||
|
|
||||||
def configure_grid(self, g):
|
def configure_grid(self, g):
|
||||||
g.default_sortkey = 'obtained'
|
g.default_sortkey = 'obtained'
|
||||||
|
g.obtained.set(renderer=forms.DateTimeFieldRenderer(self.rattail_config))
|
||||||
g.configure(
|
g.configure(
|
||||||
include=[
|
include=[
|
||||||
g.source,
|
g.source,
|
||||||
|
|
Loading…
Reference in a new issue