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