Fix bad tags, sphinx version

This commit is contained in:
Alejandro Franco 2024-10-10 13:54:37 -06:00
parent 6b6c7a8268
commit 28eefb5cfa
2 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ djangorestframework-stubs==3.15.1 # https://github.com/typeddjango/djangorestfr
# ------------------------------------------------------------------------------
sphinx==8.0.2 # https://github.com/sphinx-doc/sphinx
sphinx-autobuild==2024.10.3 # https://github.com/GaretJax/sphinx-autobuild
sphinx-rtd-theme==2.0.0 # https://pypi.org/project/sphinx-rtd-theme/
sphinx-rtd-theme==3.0.1 # https://pypi.org/project/sphinx-rtd-theme/
# Code quality
# ------------------------------------------------------------------------------

View File

@ -51,11 +51,11 @@ class User(AbstractUser):
return reverse("users:detail", kwargs={"uuid": self.uuid})
def __str__(self):
{ % - if cookiecutter.username_type == "email" %}
{%- if cookiecutter.username_type == "email" %}
return f"{self.first_name} {self.last_name}"
{ % - else %}
{%- else %}
return f"{self.username}"
{ % - endif %}
{%- endif %}
def save(self, *args, **kwargs):
self.first_name = self.first_name.strip()