Revision 2a2ea58f monkey_patch/__init__.py

b/monkey_patch/__init__.py
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

Also available in: Unified diff