mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-09-25 21:10:02 +00:00
54 lines
1.6 KiB
Python
54 lines
1.6 KiB
Python
|
# Generated by Django 3.2.16 on 2022-12-17 19:28
|
||
|
|
||
|
import bookwyrm.models.fields
|
||
|
import django.contrib.postgres.fields.citext
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
("bookwyrm", "0170_merge_0168_auto_20221205_2331_0169_auto_20221206_0902"),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name="Hashtag",
|
||
|
fields=[
|
||
|
(
|
||
|
"id",
|
||
|
models.AutoField(
|
||
|
auto_created=True,
|
||
|
primary_key=True,
|
||
|
serialize=False,
|
||
|
verbose_name="ID",
|
||
|
),
|
||
|
),
|
||
|
("created_date", models.DateTimeField(auto_now_add=True)),
|
||
|
("updated_date", models.DateTimeField(auto_now=True)),
|
||
|
(
|
||
|
"remote_id",
|
||
|
bookwyrm.models.fields.RemoteIdField(
|
||
|
max_length=255,
|
||
|
null=True,
|
||
|
validators=[bookwyrm.models.fields.validate_remote_id],
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"name",
|
||
|
django.contrib.postgres.fields.citext.CICharField(max_length=256),
|
||
|
),
|
||
|
],
|
||
|
options={
|
||
|
"abstract": False,
|
||
|
},
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name="status",
|
||
|
name="mention_hashtags",
|
||
|
field=bookwyrm.models.fields.TagField(
|
||
|
related_name="mention_hashtag", to="bookwyrm.Hashtag"
|
||
|
),
|
||
|
),
|
||
|
]
|