From 5ef67e8bbf336eb66f926ff681cab729ef3269e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Tue, 6 Nov 2018 10:19:59 +0200 Subject: [PATCH] Remove Profile.bill_to field. --- CHANGELOG.md | 1 + hc/accounts/admin.py | 3 +-- .../migrations/0016_remove_profile_bill_to.py | 17 +++++++++++++++++ hc/accounts/models.py | 1 - 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 hc/accounts/migrations/0016_remove_profile_bill_to.py diff --git a/CHANGELOG.md b/CHANGELOG.md index c37fab28..4bd8907b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file. - Don't send monthly reports to inactive accounts (no pings in 6 months) - Add search box in the "My Checks" page - Add read-only API key support +- Remove Profile.bill_to field (obsolete) ### Bug Fixes - During DST transition, handle ambiguous dates as pre-transition diff --git a/hc/accounts/admin.py b/hc/accounts/admin.py index 96e626bf..b7dae96c 100644 --- a/hc/accounts/admin.py +++ b/hc/accounts/admin.py @@ -28,8 +28,7 @@ class ProfileFieldset(Fieldset): class TeamFieldset(Fieldset): name = "Team" fields = ("team_name", "team_limit", "check_limit", - "ping_log_limit", "sms_limit", "sms_sent", "last_sms_date", - "bill_to") + "ping_log_limit", "sms_limit", "sms_sent", "last_sms_date") @admin.register(Profile) diff --git a/hc/accounts/migrations/0016_remove_profile_bill_to.py b/hc/accounts/migrations/0016_remove_profile_bill_to.py new file mode 100644 index 00000000..a3ffe9e2 --- /dev/null +++ b/hc/accounts/migrations/0016_remove_profile_bill_to.py @@ -0,0 +1,17 @@ +# Generated by Django 2.1.2 on 2018-11-06 08:17 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('accounts', '0015_auto_20181029_1858'), + ] + + operations = [ + migrations.RemoveField( + model_name='profile', + name='bill_to', + ), + ] diff --git a/hc/accounts/models.py b/hc/accounts/models.py index ce588bd6..cd99fed0 100644 --- a/hc/accounts/models.py +++ b/hc/accounts/models.py @@ -54,7 +54,6 @@ class Profile(models.Model): api_key = models.CharField(max_length=128, blank=True) api_key_readonly = models.CharField(max_length=128, blank=True) current_team = models.ForeignKey("self", models.SET_NULL, null=True) - bill_to = models.TextField(blank=True) last_sms_date = models.DateTimeField(null=True, blank=True) sms_limit = models.IntegerField(default=0) sms_sent = models.IntegerField(default=0)