-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: load data via server load function and alter quiblet model
- Loading branch information
1 parent
cc05bdf
commit 7e6189b
Showing
8 changed files
with
339 additions
and
123 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
backend/apps/quib/migrations/0005_alter_quibmodel_content.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,18 @@ | ||
# Generated by Django 5.1.4 on 2024-12-16 11:57 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('quib', '0004_quibmodel_comments'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='quibmodel', | ||
name='content', | ||
field=models.TextField(blank=True, verbose_name='content'), | ||
), | ||
] |
47 changes: 47 additions & 0 deletions
47
...nd/apps/quiblet/migrations/0003_remove_quibletmodel_cover_quibletmodel_banner_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,47 @@ | ||
# Generated by Django 5.1.4 on 2024-12-16 11:57 | ||
|
||
import dynamic_filenames | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('quiblet', '0002_initial'), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name='quibletmodel', | ||
name='cover', | ||
), | ||
migrations.AddField( | ||
model_name='quibletmodel', | ||
name='banner', | ||
field=models.ImageField( | ||
blank=True, | ||
null=True, | ||
upload_to=dynamic_filenames.FilePattern( | ||
filename_pattern='banner/{uuid:s}{ext}' | ||
), | ||
verbose_name='banner', | ||
), | ||
), | ||
migrations.AddField( | ||
model_name='quibletmodel', | ||
name='title', | ||
field=models.CharField( | ||
blank=True, max_length=50, null=True, verbose_name='title' | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name='quibletmodel', | ||
name='name', | ||
field=models.CharField( | ||
error_messages={'unique': 'Quiblet with this name already exists.'}, | ||
max_length=25, | ||
unique=True, | ||
verbose_name='name', | ||
), | ||
), | ||
] |
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.