summaryrefslogtreecommitdiffstats
path: root/users/migrations/0002_follow_state_follow_state_attempted_and_more.py
diff options
context:
space:
mode:
Diffstat (limited to 'users/migrations/0002_follow_state_follow_state_attempted_and_more.py')
-rw-r--r--users/migrations/0002_follow_state_follow_state_attempted_and_more.py44
1 files changed, 44 insertions, 0 deletions
diff --git a/users/migrations/0002_follow_state_follow_state_attempted_and_more.py b/users/migrations/0002_follow_state_follow_state_attempted_and_more.py
new file mode 100644
index 0000000..b33236a
--- /dev/null
+++ b/users/migrations/0002_follow_state_follow_state_attempted_and_more.py
@@ -0,0 +1,44 @@
+# Generated by Django 4.1.3 on 2022-11-07 19:22
+
+import django.utils.timezone
+from django.db import migrations, models
+
+import stator.models
+import users.models.follow
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ("users", "0001_initial"),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name="follow",
+ name="state",
+ field=stator.models.StateField(
+ choices=[
+ ("pending", "pending"),
+ ("requested", "requested"),
+ ("accepted", "accepted"),
+ ],
+ default="pending",
+ graph=users.models.follow.FollowStates,
+ max_length=100,
+ ),
+ ),
+ migrations.AddField(
+ model_name="follow",
+ name="state_attempted",
+ field=models.DateTimeField(blank=True, null=True),
+ ),
+ migrations.AddField(
+ model_name="follow",
+ name="state_changed",
+ field=models.DateTimeField(
+ auto_now_add=True, default=django.utils.timezone.now
+ ),
+ preserve_default=False,
+ ),
+ ]