Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.

Commit

Permalink
bug 1462475: remove models/fields related to zones
Browse files Browse the repository at this point in the history
* Delete DocumentZone model
* Remove the "zone_subnav_local_html" field from Document
  model
  • Loading branch information
escattone committed Aug 7, 2018
1 parent 216fa0a commit ca4328f
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions kuma/wiki/models.py
Expand Up @@ -291,9 +291,6 @@ class Document(NotificationsMixin, models.Model):

quick_links_html = models.TextField(editable=False, blank=True, null=True)

zone_subnav_local_html = models.TextField(editable=False,
blank=True, null=True)

toc_html = models.TextField(editable=False, blank=True, null=True)

summary_html = models.TextField(editable=False, blank=True, null=True)
Expand Down Expand Up @@ -1458,26 +1455,6 @@ def __unicode__(self):
}


class DocumentZone(models.Model):
"""
Model object declaring a content zone root at a given Document, provides
attributes inherited by the topic hierarchy beneath it.
"""
document = models.OneToOneField(Document, related_name='zone',
on_delete=models.PROTECT)
css_slug = models.CharField(
max_length=100, blank=True,
help_text='name of an alternative pipeline CSS group for documents '
'under this zone (note that "zone-" will be prepended)')
url_root = models.CharField(
max_length=255, null=True, blank=True, db_index=True,
help_text="alternative URL path root for documents under this zone")

def __unicode__(self):
return u'DocumentZone %s (%s)' % (self.document.get_absolute_url(),
self.document.title)


class ReviewTag(TagBase):
"""A tag indicating review status, mainly for revisions"""
class Meta:
Expand Down

0 comments on commit ca4328f

Please sign in to comment.