Skip to content

Commit

Permalink
fixed a problem with circular imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mdipierro committed Mar 31, 2015
1 parent d088c62 commit 2755354
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gluon/sqlhtml.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
from pydal.adapters.base import CALLABLETYPES
from pydal.helpers.methods import smart_query, bar_encode
from pydal.helpers.classes import Reference, SQLCustomType
from gluon.dal import _default_validators
from gluon.storage import Storage
from gluon.utils import md5_hash
from gluon.validators import IS_EMPTY_OR, IS_NOT_EMPTY, IS_LIST_OF, IS_DATE
Expand Down Expand Up @@ -1130,8 +1129,8 @@ def __init__(
extra_field.table = table
extra_field.tablename = table._tablename
if extra_field.requires == DEFAULT:
extra_field.requires = _default_validators(table._db,
extra_field)
from gluon.dal import _default_validators
extra_field.requires = _default_validators(table._db, extra_field)

for fieldname in self.fields:
if fieldname.find('.') >= 0:
Expand Down

0 comments on commit 2755354

Please sign in to comment.