signal backend, app cleanup
This commit is contained in:
parent
4b157ed1d1
commit
6f18890739
43 changed files with 695 additions and 124 deletions
|
|
@ -0,0 +1,47 @@
|
|||
# Generated by Django 4.2.3 on 2023-07-24 14:07
|
||||
|
||||
from django.conf import settings
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
import django.utils.timezone
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||||
("item", "0002_initial"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterModelOptions(
|
||||
name="comment",
|
||||
options={
|
||||
"permissions": [
|
||||
("can_post_comment", "Can post comments without moderation")
|
||||
]
|
||||
},
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="comment",
|
||||
name="user",
|
||||
field=models.ForeignKey(
|
||||
blank=True,
|
||||
null=True,
|
||||
on_delete=django.db.models.deletion.CASCADE,
|
||||
related_name="comments",
|
||||
to=settings.AUTH_USER_MODEL,
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="item",
|
||||
name="announced",
|
||||
field=models.DateTimeField(blank=True, default=None, null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="item",
|
||||
name="published",
|
||||
field=models.DateTimeField(
|
||||
blank=True, default=django.utils.timezone.now, null=True
|
||||
),
|
||||
),
|
||||
]
|
||||
17
app/item/migrations/0004_comment_session_key.py
Normal file
17
app/item/migrations/0004_comment_session_key.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
# Generated by Django 4.2.3 on 2023-07-24 17:04
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("item", "0003_alter_comment_options_alter_comment_user_and_more"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="comment",
|
||||
name="session_key",
|
||||
field=models.CharField(blank=True, default=None, max_length=60, null=True),
|
||||
),
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue