Parcourir la source

relationship refactor

blezz-tech il y a 1 mois
Parent
commit
d3afe2b660
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      models/relationship.py

+ 2 - 2
models/relationship.py

@@ -45,13 +45,13 @@ class Relationship(models.Model):
     )
 
     # FK
-    user_id_who = models.ForeignKey(
+    user_who = models.ForeignKey(
         get_user_model(),
         related_name="user_id_who",
         on_delete=models.DO_NOTHING,
         help_text="уникальный идентификатор инициатора договорных отношений"
     )
-    user_id_whom = models.ForeignKey(
+    user_whom = models.ForeignKey(
         get_user_model(),
         related_name="user_id_whom",
         on_delete=models.DO_NOTHING,