Skip to content

Commit

Permalink
chore: silence system auth.W004 warning (#102)
Browse files Browse the repository at this point in the history
The auth.W004 warning says that user username field is not unique. This
change silence this warning because we have a unique constraint in
place, but considering only non deleted objects.
  • Loading branch information
Caio Carrara authored Jan 25, 2022
1 parent ace1a35 commit 86ff7a5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions terraso_backend/config/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
ALLOWED_HOSTS = config("ALLOWED_HOSTS", default="*", cast=config.list)
SECRET_KEY = config("SECRET_KEY")

SILENCED_SYSTEM_CHECKS = ["auth.W004"]

INSTALLED_APPS = [
"django.contrib.admin",
"django.contrib.auth",
Expand Down

0 comments on commit 86ff7a5

Please sign in to comment.