remove deprecated preference

This commit is contained in:
Your Name 2024-06-16 12:22:21 -04:00 committed by Henri Dickson
parent 1a56bad4d0
commit 794d77f898
3 changed files with 18 additions and 5 deletions

@ -1 +1 @@
Subproject commit 5dce52845e9576698ce45c676f4578c6b6e10125
Subproject commit c369e1aa22d756fde1288b8a8ea7a9da90f9ac63

View file

@ -0,0 +1,17 @@
# Generated by Django 4.2.13 on 2024-06-16 16:21
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("users", "0002_preference_auto_bookmark_cats"),
]
operations = [
migrations.RemoveField(
model_name="preference",
name="no_anonymous_view",
),
]

View file

@ -50,7 +50,6 @@ class Preference(models.Model):
# 0: discover, 1: timeline, 2: my profile
classic_homepage = models.PositiveSmallIntegerField(null=False, default=0)
show_last_edit = models.PositiveSmallIntegerField(null=False, default=1)
no_anonymous_view = models.PositiveSmallIntegerField(default=0) # TODO remove
hidden_categories = models.JSONField(default=list)
auto_bookmark_cats = models.JSONField(default=_default_book_cats)
mastodon_append_tag = models.CharField(max_length=2048, default="")
@ -58,9 +57,6 @@ class Preference(models.Model):
mastodon_repost_mode = models.PositiveSmallIntegerField(null=False, default=0)
mastodon_skip_userinfo = models.BooleanField(null=False, default=False)
mastodon_skip_relationship = models.BooleanField(null=False, default=False)
# Removed:
# mastodon_publish_public = models.BooleanField(null=False, default=False)
# default_no_share = models.BooleanField(null=False, default=False)
def __str__(self):
return str(self.user)