Browse Source

Remove Profile.current_project field. Fixes #336

pull/340/head
Pēteris Caune 5 years ago
parent
commit
8bbf85a397
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
2 changed files with 17 additions and 1 deletions
  1. +17
    -0
      hc/accounts/migrations/0029_remove_profile_current_project.py
  2. +0
    -1
      hc/accounts/models.py

+ 17
- 0
hc/accounts/migrations/0029_remove_profile_current_project.py View File

@ -0,0 +1,17 @@
# Generated by Django 3.0.1 on 2020-03-02 07:56
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0028_auto_20191119_1346'),
]
operations = [
migrations.RemoveField(
model_name='profile',
name='current_project',
),
]

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

@ -53,7 +53,6 @@ class Profile(models.Model):
ping_log_limit = models.IntegerField(default=100)
check_limit = models.IntegerField(default=20)
token = models.CharField(max_length=128, blank=True)
current_project = models.ForeignKey("Project", models.SET_NULL, null=True)
last_sms_date = models.DateTimeField(null=True, blank=True)
sms_limit = models.IntegerField(default=5)
sms_sent = models.IntegerField(default=0)


Loading…
Cancel
Save