Added Blacklist Levels

This commit is contained in:
2011-06-02 11:57:20 +01:00
parent 31ff6c372f
commit d2406d6614
6 changed files with 217 additions and 5 deletions

View File

@@ -142,6 +142,9 @@ class Blacklist(models.Model):
type = models.IntegerField(choices=BLACKLIST_TYPE_CHOICES,
verbose_name="Blacklisted Type",
help_text="Type of entity to be blacklisted")
level = models.IntegerField(choices=BLACKLIST_LEVEL_CHOICES,
verbose_name="Blacklist Level",
help_text="Level of blacklisting", default=BLACKLIST_LEVEL_BLACKLIST)
value = models.CharField("Blacklisted Value", max_length=255, blank=False)
reason = models.TextField(blank=False, verbose_name="Reason",
help_text="Reason that the entity was blacklisted")