From abad126d4a0ee1df2db89fcf81f6c8ffdc08a251 Mon Sep 17 00:00:00 2001 From: Leonidas Poulopoulos Date: Mon, 13 Feb 2012 15:22:03 +0200 Subject: [PATCH] Added source address to required fields --- flowspec/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flowspec/models.py b/flowspec/models.py index c0aee03..90b8e32 100644 --- a/flowspec/models.py +++ b/flowspec/models.py @@ -81,7 +81,7 @@ class ThenAction(models.Model): class Route(models.Model): name = models.SlugField(max_length=128) applier = models.ForeignKey(User, blank=True, null=True) - source = models.CharField(max_length=32, blank=True, null=True, help_text=u"Network address. Use address/CIDR notation", verbose_name="Source Address") + source = models.CharField(max_length=32, help_text=u"Network address. Use address/CIDR notation", verbose_name="Source Address") sourceport = models.ManyToManyField(MatchPort, blank=True, null=True, related_name="matchSourcePort", verbose_name="Source Port") destination = models.CharField(max_length=32, help_text=u"Network address. Use address/CIDR notation", verbose_name="Destination Address") destinationport = models.ManyToManyField(MatchPort, blank=True, null=True, related_name="matchDestinationPort", verbose_name="Destination Port") -- 1.7.10.4