Add ability to create bans from reports

This is done in the admin view and opens a new iframed window. The ban
form is pretty barebones and doesn't have full functionality yet, but
that is coming.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-06-23 16:03:09 -07:00
parent 5763c33f39
commit 470a10d2a7
9 changed files with 260 additions and 26 deletions

View File

@@ -304,7 +304,7 @@ class RangeBan(BanCommon):
class Ban(BanCommon):
# IP address of the ban
ip = models.GenericIPAddressField(unique=True)
ip = models.GenericIPAddressField()
def __str__(self):
return f"Ban for {self.ip}"