Browse Source

Remove unused get_absolute_url method

pull/1349/head
Hironsan 3 years ago
parent
commit
06612a931d
1 changed files with 0 additions and 4 deletions
  1. 4
      backend/api/models.py

4
backend/api/models.py

@ -7,7 +7,6 @@ from django.core.exceptions import ValidationError
from django.db import models
from django.db.models.signals import m2m_changed, post_save, pre_delete
from django.dispatch import receiver
from django.urls import reverse
from polymorphic.models import PolymorphicModel
from .managers import (AnnotationManager, RoleMappingManager,
@ -37,9 +36,6 @@ class Project(PolymorphicModel):
collaborative_annotation = models.BooleanField(default=False)
single_class_classification = models.BooleanField(default=False)
def get_absolute_url(self):
return reverse('upload', args=[self.id])
def get_annotation_serializer(self):
raise NotImplementedError()

Loading…
Cancel
Save