Skip to content

Commit 31d62e6

Browse files
authored
Merge pull request #5864 from readthedocs/remove-version-tags
Remove `tags` from the Version model
2 parents 61de4ea + b4e2240 commit 31d62e6

File tree

3 files changed

+20
-3
lines changed

3 files changed

+20
-3
lines changed

readthedocs/builds/forms.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class VersionForm(forms.ModelForm):
1313

1414
class Meta:
1515
model = Version
16-
fields = ['active', 'privacy_level', 'tags']
16+
fields = ['active', 'privacy_level']
1717

1818
def clean_active(self):
1919
active = self.cleaned_data['active']
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# -*- coding: utf-8 -*-
2+
# Generated by Django 1.11.20 on 2019-06-28 16:29
3+
from __future__ import unicode_literals
4+
5+
from django.db import migrations
6+
7+
8+
class Migration(migrations.Migration):
9+
10+
dependencies = [
11+
('builds', '0007_add-automation-rules'),
12+
]
13+
14+
operations = [
15+
migrations.RemoveField(
16+
model_name='version',
17+
name='tags',
18+
),
19+
]

readthedocs/builds/models.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
from django_extensions.db.models import TimeStampedModel
1616
from jsonfield import JSONField
1717
from polymorphic.models import PolymorphicModel
18-
from taggit.managers import TaggableManager
1918

2019
import readthedocs.builds.automation_actions as actions
2120
from readthedocs.config import LATEST_CONFIGURATION_VERSION
@@ -106,7 +105,6 @@ class Version(models.Model):
106105
default=settings.DEFAULT_VERSION_PRIVACY_LEVEL,
107106
help_text=_('Level of privacy for this Version.'),
108107
)
109-
tags = TaggableManager(blank=True)
110108
machine = models.BooleanField(_('Machine Created'), default=False)
111109

112110
objects = VersionManager.from_queryset(VersionQuerySet)()

0 commit comments

Comments
 (0)