Removed references to edbob.enum.

This commit is contained in:
Lance Edgar 2013-12-17 06:09:28 -08:00
parent 1a557f3947
commit 874ad44e6b

View file

@ -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"),