-
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.
Removed Read Serializer, Refactored list function for Item and Sublet…
… in views to use a more abstract filtering method
- Loading branch information
1 parent
4771b60
commit 846697f
Showing
7 changed files
with
155 additions
and
191 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
backend/market/migrations/0004_rename_image_itemimage_images.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.0.2 on 2024-11-08 23:07 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("market", "0003_alter_item_category_alter_item_seller_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name="itemimage", | ||
old_name="image", | ||
new_name="images", | ||
), | ||
] |
18 changes: 18 additions & 0 deletions
18
backend/market/migrations/0005_rename_images_itemimage_image.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.0.2 on 2024-11-08 23:10 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("market", "0004_rename_image_itemimage_images"), | ||
] | ||
|
||
operations = [ | ||
migrations.RenameField( | ||
model_name="itemimage", | ||
old_name="images", | ||
new_name="image", | ||
), | ||
] |
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,21 @@ | ||
# Generated by Django 5.0.2 on 2024-11-08 23:11 | ||
|
||
import django.db.models.deletion | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("market", "0005_rename_images_itemimage_image"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="itemimage", | ||
name="item", | ||
field=models.ForeignKey( | ||
on_delete=django.db.models.deletion.CASCADE, related_name="images", to="market.item" | ||
), | ||
), | ||
] |
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
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.