zalmanu / project-spartan

Project Spartan -- hire someone to carry out tasks for you.
GNU General Public License v3.0
6 stars 3 forks source link

Use validators to cleanup form's code #153

Closed vtemian closed 8 years ago

vtemian commented 8 years ago

In Offer model, for price, you can make an integer validator in order to simply the clean logic from CreateOfferForm.

You can reuse the validator in other model/forms