From 514762c233e0c8ffc1df1453b524727a94755688 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sun, 11 Sep 2022 16:24:42 +1000 Subject: [PATCH] fix typo in new user fields oopsie --- ...{0158_auto_20220911_0008.py => 0158_auto_20220911_0525.py} | 4 ++-- bookwyrm/models/user.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename bookwyrm/migrations/{0158_auto_20220911_0008.py => 0158_auto_20220911_0525.py} (89%) diff --git a/bookwyrm/migrations/0158_auto_20220911_0008.py b/bookwyrm/migrations/0158_auto_20220911_0525.py similarity index 89% rename from bookwyrm/migrations/0158_auto_20220911_0008.py rename to bookwyrm/migrations/0158_auto_20220911_0525.py index d5a98d94a..764c6172f 100644 --- a/bookwyrm/migrations/0158_auto_20220911_0008.py +++ b/bookwyrm/migrations/0158_auto_20220911_0525.py @@ -1,4 +1,4 @@ -# Generated by Django 3.2.15 on 2022-09-11 00:08 +# Generated by Django 3.2.15 on 2022-09-11 05:25 from django.db import migrations, models @@ -12,7 +12,7 @@ class Migration(migrations.Migration): operations = [ migrations.AddField( model_name="user", - name="htop_count", + name="hotp_count", field=models.IntegerField(blank=True, default=0, null=True), ), migrations.AddField( diff --git a/bookwyrm/models/user.py b/bookwyrm/models/user.py index 8703d01fc..87d7d5207 100644 --- a/bookwyrm/models/user.py +++ b/bookwyrm/models/user.py @@ -178,7 +178,7 @@ class User(OrderedCollectionPageMixin, AbstractUser): # two factor authentication two_factor_auth = models.BooleanField(default=None, blank=True, null=True) otp_secret = models.CharField(max_length=32, default=None, blank=True, null=True) - htop_count = models.IntegerField(default=0, blank=True, null=True) + hotp_count = models.IntegerField(default=0, blank=True, null=True) @property def active_follower_requests(self):