##// END OF EJS Templates
Removed user and settings mode. Added settings manager to manage settings and keep them in the session (or any other backend like cookie in the future
Removed user and settings mode. Added settings manager to manage settings and keep them in the session (or any other backend like cookie in the future

File last commit:

r728:a5c2ce32 2.0-dev
r728:a5c2ce32 2.0-dev
Show More
user.py
20 lines | 440 B | text/x-python | PythonLexer
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)
def __unicode__(self):
return self.ip