alghafli
unread,Jul 12, 2014, 6:46:17 AM7/12/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Hello
I am creating a django library application. I have made a book model and
it has some fields with validators. Most of them are standard
MinValueValidator and MaxValueValidator.
Using the webserver, the validators work completely fine. I see errors
when I put invalid values. However, when I tested saving objects using
the shell, the validators are not called. I am using the shell because I
am planning to import the database from existing csv files.
Is there something wrong? Or am I responsible to call the validators
manually before save()?