update admindata

FFIB 2 years ago
parent
commit
4a80104e4c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tenancy/models.py

+ 1 - 1
tenancy/models.py

@@ -186,7 +186,7 @@ class TenancyShotRequestInfo(BaseModelMixin):
186 186
     @property
187 187
     def admindata(self):
188 188
         try:
189
-            admin = AdministratorInfo.objects.get(admin_=self.admin)
189
+            admin = AdministratorInfo.objects.get(admin_id=self.admin_id)
190 190
         except AdministratorInfo.DoesNotExist:
191 191
             admin = None
192 192