Skip to content

Commit

Permalink
Remove unused tag field from NewPlanForm
Browse files Browse the repository at this point in the history
  • Loading branch information
asankov authored and atodorov committed Jan 13, 2019
1 parent 0f4eb11 commit d7ec349
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions tcms/testplans/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tcms.core.widgets import SimpleMDE
from tcms.core.utils import string_to_list
from tcms.core.forms.fields import UserField, StripURLField
from tcms.management.models import Product, Version, Tag
from tcms.management.models import Product, Version
from .models import TestPlan, PlanType


Expand Down Expand Up @@ -58,8 +58,6 @@ def populate(self, product_id):


class NewPlanForm(BasePlanForm):
tag = forms.CharField(required=False)

auto_to_plan_author = forms.BooleanField(
initial=True,
required=False
Expand All @@ -82,11 +80,6 @@ class NewPlanForm(BasePlanForm):
)
is_active = forms.BooleanField(required=False, initial=True)

def clean_tag(self):
return Tag.objects.filter(
name__in=string_to_list(self.cleaned_data['tag'])
)


class EditPlanForm(NewPlanForm):
author = UserField(required=False)
Expand Down

0 comments on commit d7ec349

Please sign in to comment.