Forgotten migrations.
authorRadek Czajka <rczajka@rczajka.pl>
Thu, 26 Nov 2020 12:14:30 +0000 (13:14 +0100)
committerRadek Czajka <rczajka@rczajka.pl>
Thu, 26 Nov 2020 12:14:30 +0000 (13:14 +0100)
src/club/migrations/0024_auto_20201126_1250.py [new file with mode: 0644]
src/club/migrations/0025_auto_20201126_1250.py [new file with mode: 0644]
src/club/models.py
src/messaging/migrations/0006_auto_20201126_1242.py [new file with mode: 0644]

diff --git a/src/club/migrations/0024_auto_20201126_1250.py b/src/club/migrations/0024_auto_20201126_1250.py
new file mode 100644 (file)
index 0000000..2b49963
--- /dev/null
@@ -0,0 +1,33 @@
+# Generated by Django 2.2.16 on 2020-11-26 11:50
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('club', '0023_completed_at'),
+    ]
+
+    operations = [
+        migrations.RenameField(
+            model_name='membership',
+            old_name='honorary',
+            new_name='manual',
+        ),
+        migrations.AddField(
+            model_name='membership',
+            name='notes',
+            field=models.CharField(blank=True, max_length=2048, verbose_name='notes'),
+        ),
+        migrations.AddField(
+            model_name='membership',
+            name='updated_at',
+            field=models.DateField(auto_now=True, verbose_name='updated at'),
+        ),
+        migrations.AlterField(
+            model_name='membership',
+            name='name',
+            field=models.CharField(blank=True, max_length=255, verbose_name='name'),
+        ),
+    ]
diff --git a/src/club/migrations/0025_auto_20201126_1250.py b/src/club/migrations/0025_auto_20201126_1250.py
new file mode 100644 (file)
index 0000000..7954afe
--- /dev/null
@@ -0,0 +1,18 @@
+# Generated by Django 2.2.16 on 2020-11-26 11:50
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('club', '0024_auto_20201126_1250'),
+    ]
+
+    operations = [
+        migrations.AlterField(
+            model_name='membership',
+            name='manual',
+            field=models.BooleanField(default=False, verbose_name='manual'),
+        ),
+    ]
index 7147d47..665f5ba 100644 (file)
@@ -167,7 +167,7 @@ class Membership(models.Model):
             membership = user.membership
         except cls.DoesNotExist:
             return False
-        if membership.honorary:
+        if membership.manual:
             return True
         return Schedule.objects.filter(
                 expires_at__gt=now(),
diff --git a/src/messaging/migrations/0006_auto_20201126_1242.py b/src/messaging/migrations/0006_auto_20201126_1242.py
new file mode 100644 (file)
index 0000000..2b88658
--- /dev/null
@@ -0,0 +1,22 @@
+# Generated by Django 2.2.16 on 2020-11-26 11:42
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ('messaging', '0005_auto_20200129_1309'),
+    ]
+
+    operations = [
+        migrations.AlterModelOptions(
+            name='contact',
+            options={'verbose_name': 'contact', 'verbose_name_plural': 'contacts'},
+        ),
+        migrations.AlterField(
+            model_name='contact',
+            name='level',
+            field=models.PositiveSmallIntegerField(choices=[(10, 'Cold'), (20, 'Would-be donor'), (30, 'One-time donor'), (40, 'Recurring donor'), (45, 'Manually set as member'), (50, 'Opt out')]),
+        ),
+    ]