Skip to content

Commit

Permalink
Update django recaptcha package names
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandgeider committed Nov 21, 2023
1 parent ecc68a1 commit b10df79
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions wger/core/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
from django.utils.translation import gettext as _

# Third Party
from captcha.fields import ReCaptchaField
from captcha.widgets import ReCaptchaV3
from crispy_forms.helper import FormHelper
from crispy_forms.layout import (
HTML,
Expand All @@ -48,6 +46,8 @@
Row,
Submit,
)
from django_recaptcha.fields import ReCaptchaField
from django_recaptcha.widgets import ReCaptchaV3

# wger
from wger.core.models import UserProfile
Expand Down Expand Up @@ -196,7 +196,7 @@ def clean_email(self):
if not email:
return email
try:
#Performs a case-insensitive lookup
# Performs a case-insensitive lookup
user = User.objects.get(email__iexact=email)
if user.email == self.instance.email:
return email
Expand Down
4 changes: 2 additions & 2 deletions wger/core/models/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,8 @@ def user_bodyweight(self, weight):
"""
if (
not WeightEntry.objects.filter(user=self.user).exists() or (
datetime.date.today() - WeightEntry.objects.filter(user=self.user).latest().date
> datetime.timedelta(days=3)
datetime.date.today() - WeightEntry.objects.filter(user=self.user).latest().date >
datetime.timedelta(days=3)
)
):
entry = WeightEntry()
Expand Down
2 changes: 1 addition & 1 deletion wger/settings_global.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
'wger.measurements',

# reCaptcha support, see https://github.com/praekelt/django-recaptcha
'captcha',
'django_recaptcha',

# The sitemaps app
'django.contrib.sitemaps',
Expand Down

0 comments on commit b10df79

Please sign in to comment.