Removed references to edbob.enum
.
This commit is contained in:
parent
1a557f3947
commit
874ad44e6b
|
@ -28,12 +28,12 @@ Customer Views
|
||||||
|
|
||||||
from sqlalchemy import and_
|
from sqlalchemy import and_
|
||||||
|
|
||||||
from edbob.enum import EMAIL_PREFERENCE
|
|
||||||
|
|
||||||
from . import SearchableAlchemyGridView, CrudView
|
from . import SearchableAlchemyGridView, CrudView
|
||||||
from ..forms import EnumFieldRenderer
|
from ..forms import EnumFieldRenderer
|
||||||
|
|
||||||
from ..db import Session
|
from ..db import Session
|
||||||
|
|
||||||
|
from rattail import enum
|
||||||
from rattail.db import model
|
from rattail.db import model
|
||||||
|
|
||||||
|
|
||||||
|
@ -122,7 +122,7 @@ class CustomerCrud(CrudView):
|
||||||
|
|
||||||
def fieldset(self, model):
|
def fieldset(self, model):
|
||||||
fs = self.make_fieldset(model)
|
fs = self.make_fieldset(model)
|
||||||
fs.email_preference.set(renderer=EnumFieldRenderer(EMAIL_PREFERENCE))
|
fs.email_preference.set(renderer=EnumFieldRenderer(enum.EMAIL_PREFERENCE))
|
||||||
fs.configure(
|
fs.configure(
|
||||||
include=[
|
include=[
|
||||||
fs.id.label("ID"),
|
fs.id.label("ID"),
|
||||||
|
|
Loading…
Reference in a new issue