init new apps

This commit is contained in:
2025-09-05 11:34:31 +02:00
parent cc2fe5ed03
commit ac1649fbbb
17 changed files with 125 additions and 0 deletions

11
profiles/models.py Normal file
View File

@@ -0,0 +1,11 @@
from django.db import models
from django.contrib.auth.models import User
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE)
favorite_city = models.CharField(max_length=64, blank=True)
def __str__(self):
return self.user.username