Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
numahell committed Jun 9, 2022
1 parent a389b0d commit a560f55
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion georiviere/river/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,18 @@
logger = logging.getLogger(__name__)


class SnappedFieldMixin(object):
class SnappedFieldMixin:
"""
It's a Geometry field, with additional information about snapped vertices.
"""
widget = SnappedGeometryWidget


class ForceSnapFieldMixin(SnappedFieldMixin):
"""
It's a Geometry field, with additional information about snapped vertices, and force snap on validation
"""

default_error_messages = {
'invalid_snap_line': _('Geometry invalid snapping.'),
}
Expand Down

0 comments on commit a560f55

Please sign in to comment.