2 Revīzijas 3b52a57144 ... 8ae15e5d08

Autors SHA1 Ziņojums Datums
  TonyKurts 8ae15e5d08 Fixed a bug where it was impossible to create a superuser using standard Django tools 1 mēnesi atpakaļ
  TonyKurts 3b52a57144 Fixed a bug where it was impossible to create a superuser using standard Django tools 1 mēnesi atpakaļ
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      models.py

+ 1 - 1
models.py

@@ -11,4 +11,4 @@ class ShariXUser(AbstractUser):
     REQUIRED_FIELDS = ['username', 'first_name', 'last_name']
 
     def __str__(self):
-        return f"{self.first_name} {self.last_name}{" " + self.patronymic if self.patronymic else ""}"
+        return f"{self.first_name} {self.last_name}{' ' + self.patronymic if self.patronymic else ''}"