Browse Source

Remove Profile.bill_to field.

pull/199/head
Pēteris Caune 6 years ago
parent
commit
5ef67e8bbf
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
4 changed files with 19 additions and 3 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +1
    -2
      hc/accounts/admin.py
  3. +17
    -0
      hc/accounts/migrations/0016_remove_profile_bill_to.py
  4. +0
    -1
      hc/accounts/models.py

+ 1
- 0
CHANGELOG.md View File

@ -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


+ 1
- 2
hc/accounts/admin.py View File

@ -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)


+ 17
- 0
hc/accounts/migrations/0016_remove_profile_bill_to.py View File

@ -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',
),
]

+ 0
- 1
hc/accounts/models.py View File

@ -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)


Loading…
Cancel
Save