-
Notifications
You must be signed in to change notification settings - Fork 2
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
=
committed
Oct 7, 2024
1 parent
a654049
commit 6ebbe91
Showing
82 changed files
with
3,080 additions
and
58 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
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,17 @@ | ||
# Generated by Django 5.1 on 2024-10-06 23:16 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("auctions", "0150_auction_invoice_rounding_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="lot", | ||
name="summernote_description", | ||
field=models.CharField(default="", max_length=2000, verbose_name="Description"), | ||
), | ||
] |
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,25 @@ | ||
# Generated by Django 5.1 on 2024-10-07 12:56 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
def copy_description(apps, schema_editor): | ||
Lot = apps.get_model("auctions", "Lot") | ||
for lot in Lot.objects.all(): | ||
lot.summernote_description = lot.description_rendered[:10000] or "" | ||
lot.save() | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("auctions", "0151_lot_summernote_description"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="lot", | ||
name="summernote_description", | ||
field=models.CharField(blank=True, default="", max_length=10000, verbose_name="Description"), | ||
), | ||
migrations.RunPython(copy_description), | ||
] |
25 changes: 25 additions & 0 deletions
25
auctions/migrations/0153_auction_summernote_description.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,25 @@ | ||
# Generated by Django 5.1 on 2024-10-07 15:27 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
def copy_notes(apps, schema_editor): | ||
Auction = apps.get_model("auctions", "Auction") | ||
for auction in Auction.objects.all(): | ||
auction.summernote_description = auction.notes_rendered[:10000] or "" | ||
auction.save() | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("auctions", "0152_copy_description"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="auction", | ||
name="summernote_description", | ||
field=models.CharField(blank=True, default="", max_length=10000, verbose_name="Rules"), | ||
), | ||
migrations.RunPython(copy_notes), | ||
] |
28 changes: 28 additions & 0 deletions
28
auctions/migrations/0154_remove_auction_notes_remove_auction_notes_rendered_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,28 @@ | ||
# Generated by Django 5.1 on 2024-10-07 16:47 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("auctions", "0153_auction_summernote_description"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="auction", | ||
name="notes", | ||
), | ||
migrations.RemoveField( | ||
model_name="auction", | ||
name="notes_rendered", | ||
), | ||
migrations.RemoveField( | ||
model_name="lot", | ||
name="description", | ||
), | ||
migrations.RemoveField( | ||
model_name="lot", | ||
name="description_rendered", | ||
), | ||
] |
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.