mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-30 10:58:09 +00:00
Adds cw field
This commit is contained in:
parent
33c2f6c3b2
commit
b796686483
2 changed files with 20 additions and 1 deletions
19
bookwyrm/migrations/0026_status_content_warning.py
Normal file
19
bookwyrm/migrations/0026_status_content_warning.py
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
# Generated by Django 3.0.7 on 2020-12-17 03:17
|
||||||
|
|
||||||
|
import bookwyrm.models.fields
|
||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
('bookwyrm', '0025_auto_20201217_0046'),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.AddField(
|
||||||
|
model_name='status',
|
||||||
|
name='content_warning',
|
||||||
|
field=bookwyrm.models.fields.CharField(blank=True, max_length=500, null=True),
|
||||||
|
),
|
||||||
|
]
|
|
@ -19,7 +19,7 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
|
||||||
mention_books = fields.TagField('Edition', related_name='mention_book')
|
mention_books = fields.TagField('Edition', related_name='mention_book')
|
||||||
local = models.BooleanField(default=True)
|
local = models.BooleanField(default=True)
|
||||||
content_warning = fields.CharField(
|
content_warning = fields.CharField(
|
||||||
max_length=150, blank=True, null=True, activitypub_field='summary')
|
max_length=500, blank=True, null=True, activitypub_field='summary')
|
||||||
privacy = fields.PrivacyField(max_length=255)
|
privacy = fields.PrivacyField(max_length=255)
|
||||||
sensitive = fields.BooleanField(default=False)
|
sensitive = fields.BooleanField(default=False)
|
||||||
# created date is different than publish date because of federated posts
|
# created date is different than publish date because of federated posts
|
||||||
|
|
Loading…
Reference in a new issue