These Project's methods are not used
@@ -754,10 +754,6 @@ class Project(models.Model):
if conf_file:
return os.path.dirname(conf_file)
- @property
- def is_imported(self):
- return bool(self.repo)
-
@property
def has_good_build(self):
# Check if there is `_good_build` annotation in the Queryset.
@@ -766,14 +762,6 @@ class Project(models.Model):
return self._good_build
return self.builds.filter(success=True).exists()
- @property
- def has_versions(self):
- return self.versions.exists()
-
- @property
- def has_aliases(self):
- return self.aliases.exists()
-
def has_media(self, type_, version_slug=LATEST):
path = self.get_production_media_path(
type_=type_, version_slug=version_slug
@@ -799,10 +787,6 @@ class Project(models.Model):
def has_htmlzip(self, version_slug=LATEST):
return self.has_media(MEDIA_TYPE_HTMLZIP, version_slug=version_slug)
- @property
- def sponsored(self):
- return False
-
def vcs_repo(self, version=LATEST, environment=None):
"""
Return a Backend object for this project able to handle VCS commands.
