All of my work from commits: dd4a194, 692644a, 4a60203, 5de46bc, 152042d, 64a2d4e...
[philo.git] / contrib / penfield / validators.py
1 from django.core.exceptions import ValidationError
2
3
4 def validate_pagination_count(x):
5         if x not in range(1, 10000):
6                 raise ValidationError('Please enter an integer between 1 and 9999.')