Skip to content

Commit

Permalink
Address deprecation warnings after update
Browse files Browse the repository at this point in the history
  • Loading branch information
Viicos committed Apr 8, 2024
1 parent 7908a1d commit 0244f15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
)
from django.core.mail import send_mail
from django.urls import reverse
from django.utils.crypto import get_random_string


class Command(BaseCommand):
Expand Down Expand Up @@ -52,7 +53,7 @@ def handle(self, **options):
user = qs.get()

if not password and options["generate_password"]:
password = self.UserModel.objects.make_random_password(length=20)
password = get_random_string(20)

if password:
self.stdout.write("Setting user password...")
Expand Down
2 changes: 0 additions & 2 deletions src/nrc/conf/includes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@

USE_I18N = True

USE_L10N = True

USE_TZ = True

USE_THOUSAND_SEPARATOR = True
Expand Down

0 comments on commit 0244f15

Please sign in to comment.