##// END OF EJS Templates
Do not cache the thread view because it cannot load new replies after browser is restarted.
Do not cache the thread view because it cannot load new replies after browser is restarted.

File last commit:

r798:a4412d93 decentral
r858:2bce3a47 default
Show More
user.py
20 lines | 436 B | text/x-python | PythonLexer
neko259
Split up user models
r386 from django.db import models
__author__ = 'neko259'
BAN_REASON_AUTO = 'Auto'
BAN_REASON_MAX_LENGTH = 200
class Ban(models.Model):
class Meta:
app_label = 'boards'
ip = models.GenericIPAddressField()
reason = models.CharField(default=BAN_REASON_AUTO,
max_length=BAN_REASON_MAX_LENGTH)
can_read = models.BooleanField(default=True)
neko259
Updated ban admin to search by ip
r804 def __str__(self):
neko259
Split up user models
r386 return self.ip