From 163c21a307389059466ba922d7593ac6c9112b12 Mon Sep 17 00:00:00 2001 From: GodaimeSan22 Date: Mon, 27 Nov 2023 17:04:05 +0200 Subject: [PATCH] Fixed errors in Profile --- profiles/models.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/profiles/models.py b/profiles/models.py index 31eb6ea..b146b66 100644 --- a/profiles/models.py +++ b/profiles/models.py @@ -48,15 +48,12 @@ class ProfilesRegion(models.Model): name_ua = models.CharField(max_length=128) class ProfilesProfileRegion(models.Model): - profile = models.ForeignKey('ProfilesProfile', on_delete=models.CASCADE) + profile = models.ForeignKey('Profile', on_delete=models.CASCADE) region = models.ForeignKey('ProfilesRegion', on_delete=models.CASCADE) is_official = models.BooleanField(default=False) -class ProfilesCategory(models.Model): - name = models.CharField(max_length=50) - class ProfilesProfileCategories(models.Model): - profile = models.ForeignKey('ProfilesProfile', on_delete=models.CASCADE) + profile = models.ForeignKey('Profile', on_delete=models.CASCADE) category = models.ForeignKey('ProfilesCategory', on_delete=models.CASCADE)