root / monkey_patch / __init__.py @ d60db93b
History | View | Annotate | Download (266 Bytes)
1 | 2a2ea58f | Leonidas Poulopoulos | from django.conf import settings |
---|---|---|---|
2 | 2a2ea58f | Leonidas Poulopoulos | # This patch was retrieved from: https://github.com/GoodCloud/django-longer-username
|
3 | 2a2ea58f | Leonidas Poulopoulos | def MAX_USERNAME_LENGTH(): |
4 | 2a2ea58f | Leonidas Poulopoulos | if hasattr(settings,"MAX_USERNAME_LENGTH"): |
5 | 2a2ea58f | Leonidas Poulopoulos | return settings.MAX_USERNAME_LENGTH
|
6 | 2a2ea58f | Leonidas Poulopoulos | else:
|
7 | 2a2ea58f | Leonidas Poulopoulos | return 255 |