Statistics
| Branch: | Tag: | Revision:

root / monkey_patch / __init__.py @ d60db93b

History | View | Annotate | Download (266 Bytes)

1
from django.conf import settings
2
# This patch was retrieved from: https://github.com/GoodCloud/django-longer-username
3
def MAX_USERNAME_LENGTH():
4
    if hasattr(settings,"MAX_USERNAME_LENGTH"):
5
        return settings.MAX_USERNAME_LENGTH
6
    else:
7
        return 255