Skip to content
Snippets Groups Projects
Commit 782709a3 authored by Benjamin Bertrand's avatar Benjamin Bertrand
Browse files

Add validators for first and last IP in Network

The database constraints will catch the same error
(and raise an IntegrityError).

Having some validation at the model level allows to display nicer error
messages.
We use CSEntryError exception and not ValidationError so that it can be
used both by the API and views.
parent e1ba3816
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment