Avoid circular imports on latest sqlhtml_validators changes
This commit is contained in:
+4
-5
@@ -4,11 +4,6 @@ from pydal import DAL as pyDAL
|
|||||||
from pydal import Field, SQLCustomType, geoPoint, geoLine, geoPolygon
|
from pydal import Field, SQLCustomType, geoPoint, geoLine, geoPolygon
|
||||||
|
|
||||||
|
|
||||||
from gluon import serializers as w2p_serializers
|
|
||||||
from gluon.utils import web2py_uuid
|
|
||||||
from gluon import sqlhtml
|
|
||||||
|
|
||||||
|
|
||||||
def _default_validators(field):
|
def _default_validators(field):
|
||||||
"""
|
"""
|
||||||
Field type validation, using web2py's validators mechanism.
|
Field type validation, using web2py's validators mechanism.
|
||||||
@@ -115,6 +110,10 @@ def _default_validators(field):
|
|||||||
requires[0] = validators.IS_EMPTY_OR(requires[0])
|
requires[0] = validators.IS_EMPTY_OR(requires[0])
|
||||||
return requires
|
return requires
|
||||||
|
|
||||||
|
from gluon import serializers as w2p_serializers
|
||||||
|
from gluon.utils import web2py_uuid
|
||||||
|
from gluon import sqlhtml
|
||||||
|
|
||||||
|
|
||||||
class DAL(pyDAL):
|
class DAL(pyDAL):
|
||||||
serializers = w2p_serializers
|
serializers = w2p_serializers
|
||||||
|
|||||||
Reference in New Issue
Block a user