El 29/07/15 10:54, duriromp...@gmail.com escribió:
I've searched for where to put the validators for my models, but I
only found that they fit in *models.py*, outside the model class.
Is that correct or I should create a specific file for them?
I think that you can put validators in another file if you have several
of them or want to reuse them somewhere else. Just import them in models.py.
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/55B8F532.3090304%40epepm.cupet.cu.
For more options, visit https://groups.google.com/d/optout.