Ver código fonte

relationship refactor

blezz-tech 1 mês atrás
pai
commit
d3afe2b660
1 arquivos alterados com 2 adições e 2 exclusões
  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,