by withinboredom · 3y ago · 0 comments
Also, most applications have constraints like "X can only be 2 if and only if Y is equal to Z" ... there was no way to specify that constraint to the admin interface, so someone could set X to be 2, and it would break programmer assumptions who wrote code expecting Y to be equal to Z.
This is a convention though - one could just as easily do it the other way and embed all the business rules in the models.
(You still have to do the work, but if people are breaking things through the admin that's your fault.)