mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-09-20 19:02:37 +03:00
Fix bad tags, sphinx version
This commit is contained in:
parent
6b6c7a8268
commit
28eefb5cfa
|
@ -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
|
||||
# ------------------------------------------------------------------------------
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user