Explorar el Código

relationship refactor

blezz-tech hace 1 mes
padre
commit
d3afe2b660
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  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,