From 4d90454cf8a2f6822065629d92b2bc6d32e395d1 Mon Sep 17 00:00:00 2001 From: Aarni Halinen Date: Tue, 30 Jan 2018 16:48:41 +0200 Subject: [PATCH] Remove unneeded challenger email field --- ohlhafv/forms.py | 3 +-- ...emove_ohlhafvchallenge_challenger_email.py | 19 +++++++++++++++++++ ohlhafv/models.py | 1 - 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 ohlhafv/migrations/0002_remove_ohlhafvchallenge_challenger_email.py diff --git a/ohlhafv/forms.py b/ohlhafv/forms.py index 45f5b96..555856d 100644 --- a/ohlhafv/forms.py +++ b/ohlhafv/forms.py @@ -14,5 +14,4 @@ class OhlhafvForm(forms.ModelForm): """Meta class for Ohlhafv form.""" model = OhlhafvChallenge - fields = ['challenger', 'challenger_email', - 'victim', 'victim_email', 'series', 'message'] + fields = ['challenger', 'victim', 'victim_email', 'series', 'message'] diff --git a/ohlhafv/migrations/0002_remove_ohlhafvchallenge_challenger_email.py b/ohlhafv/migrations/0002_remove_ohlhafvchallenge_challenger_email.py new file mode 100644 index 0000000..3316c02 --- /dev/null +++ b/ohlhafv/migrations/0002_remove_ohlhafvchallenge_challenger_email.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.11 on 2018-01-30 14:45 +from __future__ import unicode_literals + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('ohlhafv', '0001_initial'), + ] + + operations = [ + migrations.RemoveField( + model_name='ohlhafvchallenge', + name='challenger_email', + ), + ] diff --git a/ohlhafv/models.py b/ohlhafv/models.py index 070a662..1b06a19 100644 --- a/ohlhafv/models.py +++ b/ohlhafv/models.py @@ -32,7 +32,6 @@ class OhlhafvChallenge(models.Model): challenger = models.CharField(_('Challenger'), max_length=255) victim = models.CharField(_('Victim'), max_length=255) - challenger_email = models.EmailField(_('Challenger email')) victim_email = models.EmailField(_('Victim email')) series = models.CharField(_('Series'), choices=SERIES_CHOICES, max_length=10) message = models.TextField(_('Message'), blank=True, null=False)