forked from doubaniux/boofilsic
-
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Her Email
committed
Nov 20, 2023
1 parent
59aaec8
commit baf678e
Showing
9 changed files
with
251 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
journal/migrations/0018_shelflogentrypost_shelflogentry_posts_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Generated by Django 4.2.7 on 2023-11-20 06:52 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("takahe", "0001_initial"), | ||
("journal", "0017_alter_piece_options_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="ShelfLogEntryPost", | ||
fields=[ | ||
( | ||
"id", | ||
models.BigAutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
( | ||
"log_entry", | ||
models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="journal.shelflogentry", | ||
), | ||
), | ||
( | ||
"post", | ||
models.ForeignKey( | ||
db_constraint=False, | ||
on_delete=django.db.models.deletion.CASCADE, | ||
to="takahe.post", | ||
), | ||
), | ||
], | ||
), | ||
migrations.AddField( | ||
model_name="shelflogentry", | ||
name="posts", | ||
field=models.ManyToManyField( | ||
related_name="log_entries", | ||
through="journal.ShelfLogEntryPost", | ||
to="takahe.post", | ||
), | ||
), | ||
migrations.AddConstraint( | ||
model_name="shelflogentrypost", | ||
constraint=models.UniqueConstraint( | ||
fields=("log_entry", "post"), name="unique_log_entry_post" | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.