Hi All, I've been looking for a simple way to spec a "max_value" limit on a (model) positive small integer field to prevent admin from throwing an "out of range value" error. I realize that the concept "small int" may be db specific so I sought a simple way to trap the error in admin when too large a number is entered.
I'm guessing that an argument could be made that such a limit doesn't belong in a model because it is unrelated to the db (the db knows the limit) but how else to prevent the admin error short of implementing a custom form with validation for the limit? Ultimately, is there no (simple) way to prevent admin from throwing and error when a number greater than 65535 (mysql) is entered in a pos small int field? Thanks --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---