diff --git a/tailbone/views/customers.py b/tailbone/views/customers.py index 4f4f68af..8d0461eb 100644 --- a/tailbone/views/customers.py +++ b/tailbone/views/customers.py @@ -28,12 +28,12 @@ Customer Views from sqlalchemy import and_ -from edbob.enum import EMAIL_PREFERENCE - from . import SearchableAlchemyGridView, CrudView from ..forms import EnumFieldRenderer from ..db import Session + +from rattail import enum from rattail.db import model @@ -122,7 +122,7 @@ class CustomerCrud(CrudView): def fieldset(self, 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( include=[ fs.id.label("ID"),