Skip to content

Remove tags from the Version model #5864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion readthedocs/builds/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class VersionForm(forms.ModelForm):

class Meta:
model = Version
fields = ['active', 'privacy_level', 'tags']
fields = ['active', 'privacy_level']

def clean_active(self):
active = self.cleaned_data['active']
Expand Down
19 changes: 19 additions & 0 deletions readthedocs/builds/migrations/0008_remove-version-tags.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.20 on 2019-06-28 16:29
from __future__ import unicode_literals

from django.db import migrations


class Migration(migrations.Migration):

dependencies = [
('builds', '0007_add-automation-rules'),
]

operations = [
migrations.RemoveField(
model_name='version',
name='tags',
),
]
2 changes: 0 additions & 2 deletions readthedocs/builds/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
from guardian.shortcuts import assign
from jsonfield import JSONField
from polymorphic.models import PolymorphicModel
from taggit.managers import TaggableManager

import readthedocs.builds.automation_actions as actions
from readthedocs.config import LATEST_CONFIGURATION_VERSION
Expand Down Expand Up @@ -107,7 +106,6 @@ class Version(models.Model):
default=settings.DEFAULT_VERSION_PRIVACY_LEVEL,
help_text=_('Level of privacy for this Version.'),
)
tags = TaggableManager(blank=True)
machine = models.BooleanField(_('Machine Created'), default=False)

objects = VersionManager.from_queryset(VersionQuerySet)()
Expand Down