Closed meshy closed 8 years ago
When a route is saved in the admin with an invalid combination of parent and slug, a 500 is raised. This needs proper validation.
parent
slug
Perhaps the message could be clearer too?
It looks as though the validation that exists here can be moved from save to clean and should raise ValidationError rather than ValueError.
save
clean
raise ValidationError
ValueError
Closing in favour of #75
When a route is saved in the admin with an invalid combination of
parent
andslug
, a 500 is raised. This needs proper validation.parent
parent
slug
slug
Perhaps the message could be clearer too?