Added sign-in view and simple protected view

This commit is contained in:
ITQ
2024-02-29 20:42:06 +03:00
parent fcf4499787
commit 2ea64e2bcb
6 changed files with 161 additions and 68 deletions
+3
View File
@@ -34,5 +34,8 @@ class Profile(models.Model):
)
image = models.URLField(max_length=200, blank=True, null=True)
def is_authenticated(self):
return True
def __str__(self):
return self.login