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:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user