dracidoupe / graveyard

Open Source reimplementation of https://www.dracidoupe.cz/
https://nove.dracidoupe.cz/
MIT License
6 stars 4 forks source link

Bad registration age check #419

Closed Almad closed 3 months ago

Almad commented 1 year ago
TypeError: can only concatenate str (not "int") to str
  File "django/core/handlers/exception.py", line 35, in inner
    response = get_response(request)
  File "django/core/handlers/base.py", line 128, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "django/core/handlers/base.py", line 126, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "ddcz/views/auth.py", line 134, in sign_up
    if form.is_valid():
  File "django/forms/forms.py", line 179, in is_valid
    return self.is_bound and not self.errors
  File "django/forms/forms.py", line 174, in errors
    self.full_clean()
  File "django/forms/forms.py", line 376, in full_clean
    self._clean_fields()
  File "django/forms/forms.py", line 397, in _clean_fields
    value = getattr(self, 'clean_%s' % name)()
  File "ddcz/forms/signup.py", line 196, in clean_age
    "Bohužel ti není " + self.MIN_AGE + " let. Zkus to, až budeš starší."

https://almad.sentry.io/issues/3890706250/