diff options
Diffstat (limited to 'mirrors/models.py')
-rw-r--r-- | mirrors/models.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/mirrors/models.py b/mirrors/models.py index c23622fa..19437610 100644 --- a/mirrors/models.py +++ b/mirrors/models.py @@ -5,14 +5,6 @@ from django.db import models from django.core.exceptions import ValidationError from django_countries import CountryField -class NullCharField(models.CharField): - description = "String (up to %(max_length)s), NULL if value is empty" - _south_introspects = True - - def get_prep_value(self, value): - if value == '': - return None - return self.to_python(value) TIER_CHOICES = ( (0, 'Tier 0'), @@ -21,6 +13,7 @@ TIER_CHOICES = ( (-1, 'Untiered'), ) + class Mirror(models.Model): name = models.CharField(max_length=255, unique=True) tier = models.SmallIntegerField(default=2, choices=TIER_CHOICES) |