forked from mirrors/bookwyrm
Merge pull request #241 from mouse-reeve/deleted-date-nullable
Deleted date should be null-able
This commit is contained in:
commit
b30fa2863f
2 changed files with 19 additions and 1 deletions
18
bookwyrm/migrations/0056_auto_20201021_0150.py
Normal file
18
bookwyrm/migrations/0056_auto_20201021_0150.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 3.0.7 on 2020-10-21 01:50
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('bookwyrm', '0055_merge_20201017_0011'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='status',
|
||||
name='deleted_date',
|
||||
field=models.DateTimeField(blank=True, null=True),
|
||||
),
|
||||
]
|
|
@ -23,7 +23,7 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
|
|||
# the created date can't be this, because of receiving federated posts
|
||||
published_date = models.DateTimeField(default=timezone.now)
|
||||
deleted = models.BooleanField(default=False)
|
||||
deleted_date = models.DateTimeField()
|
||||
deleted_date = models.DateTimeField(blank=True, null=True)
|
||||
favorites = models.ManyToManyField(
|
||||
'User',
|
||||
symmetrical=False,
|
||||
|
|
Loading…
Reference in a new issue