Explorar el Código

remove uneeded id param in context_models

Guénaël Muller hace 6 años
padre
commit
1ddab5d008
Se han modificado 1 ficheros con 0 adiciones y 8 borrados
  1. 0 8
      tracim/models/context_models.py

+ 0 - 8
tracim/models/context_models.py Ver fichero

@@ -338,10 +338,6 @@ class ContentInContext(object):
338 338
         return self.content.content_id
339 339
 
340 340
     @property
341
-    def id(self) -> int:
342
-        return self.content_id
343
-
344
-    @property
345 341
     def parent_id(self) -> int:
346 342
         """
347 343
         Return parent_id of the content
@@ -445,10 +441,6 @@ class RevisionInContext(object):
445 441
         return self.revision.content_id
446 442
 
447 443
     @property
448
-    def id(self) -> int:
449
-        return self.content_id
450
-
451
-    @property
452 444
     def parent_id(self) -> int:
453 445
         """
454 446
         Return parent_id of the content