Commits

Anonymous committed 408ed4b

added default dbindexes for auth app (enables iexact for username and email)

  • Participants
  • Parent commits f6e2ffa

Comments (0)

Files changed (1)

File dbindexes.py

+from django.conf import settings
+
+if 'django.contrib.auth' in settings.INSTALLED_APPS:
+    from dbindexer.api import register_index
+    from django.contrib.auth.models import User
+
+    register_index(User, {
+        'username': 'iexact',
+        'email': 'iexact',
+    })