-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from OZ-Coding-School/dev
Dev -> main 관리자 페이지 이미지 필드 추가
- Loading branch information
Showing
32 changed files
with
710 additions
and
85 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
33 changes: 33 additions & 0 deletions
33
customk/classes/migrations/0016_remove_classimages_image_url_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,33 @@ | ||
# Generated by Django 5.1 on 2024-09-02 06:49 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("classes", "0015_class_discount_rate"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="classimages", | ||
name="image_url", | ||
), | ||
migrations.AddField( | ||
model_name="classimages", | ||
name="description_image_url", | ||
field=models.CharField(blank=True, max_length=255), | ||
), | ||
migrations.AddField( | ||
model_name="classimages", | ||
name="detail_image_url", | ||
field=models.CharField(default="", max_length=255), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="classimages", | ||
name="thumbnail_image_url", | ||
field=models.CharField(default="", max_length=255), | ||
preserve_default=False, | ||
), | ||
] |
39 changes: 39 additions & 0 deletions
39
customk/classes/migrations/0017_remove_classimages_description_image_url_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,39 @@ | ||
# Generated by Django 5.1 on 2024-09-02 07:57 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("classes", "0016_remove_classimages_image_url_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="classimages", | ||
name="description_image_url", | ||
), | ||
migrations.RemoveField( | ||
model_name="classimages", | ||
name="detail_image_url", | ||
), | ||
migrations.RemoveField( | ||
model_name="classimages", | ||
name="thumbnail_image_url", | ||
), | ||
migrations.AddField( | ||
model_name="classimages", | ||
name="description_image_urls", | ||
field=models.JSONField(blank=True, default=list), | ||
), | ||
migrations.AddField( | ||
model_name="classimages", | ||
name="detail_image_urls", | ||
field=models.JSONField(blank=True, default=list), | ||
), | ||
migrations.AddField( | ||
model_name="classimages", | ||
name="thumbnail_image_urls", | ||
field=models.JSONField(blank=True, default=list), | ||
), | ||
] |
41 changes: 41 additions & 0 deletions
41
customk/classes/migrations/0018_remove_classimages_description_image_urls_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,41 @@ | ||
# Generated by Django 5.1 on 2024-09-02 08:06 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("classes", "0017_remove_classimages_description_image_url_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="classimages", | ||
name="description_image_urls", | ||
), | ||
migrations.RemoveField( | ||
model_name="classimages", | ||
name="detail_image_urls", | ||
), | ||
migrations.RemoveField( | ||
model_name="classimages", | ||
name="thumbnail_image_urls", | ||
), | ||
migrations.AddField( | ||
model_name="classimages", | ||
name="description_image_url", | ||
field=models.CharField(blank=True, max_length=255), | ||
), | ||
migrations.AddField( | ||
model_name="classimages", | ||
name="detail_image_url", | ||
field=models.CharField(default="", max_length=255), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="classimages", | ||
name="thumbnail_image_url", | ||
field=models.CharField(default="", max_length=255), | ||
preserve_default=False, | ||
), | ||
] |
22 changes: 22 additions & 0 deletions
22
customk/classes/migrations/0019_alter_classimages_detail_image_url_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,22 @@ | ||
# Generated by Django 5.1 on 2024-09-02 08:08 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("classes", "0018_remove_classimages_description_image_urls_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="classimages", | ||
name="detail_image_url", | ||
field=models.CharField(blank=True, max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name="classimages", | ||
name="thumbnail_image_url", | ||
field=models.CharField(blank=True, max_length=255), | ||
), | ||
] |
39 changes: 39 additions & 0 deletions
39
customk/classes/migrations/0020_remove_classimages_description_image_url_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,39 @@ | ||
# Generated by Django 5.1 on 2024-09-02 08:27 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("classes", "0019_alter_classimages_detail_image_url_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="classimages", | ||
name="description_image_url", | ||
), | ||
migrations.RemoveField( | ||
model_name="classimages", | ||
name="detail_image_url", | ||
), | ||
migrations.RemoveField( | ||
model_name="classimages", | ||
name="thumbnail_image_url", | ||
), | ||
migrations.AddField( | ||
model_name="classimages", | ||
name="description_image_urls", | ||
field=models.JSONField(blank=True, default=list), | ||
), | ||
migrations.AddField( | ||
model_name="classimages", | ||
name="detail_image_urls", | ||
field=models.JSONField(blank=True, default=list), | ||
), | ||
migrations.AddField( | ||
model_name="classimages", | ||
name="thumbnail_image_urls", | ||
field=models.JSONField(blank=True, default=list), | ||
), | ||
] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
from django.urls import re_path | ||
|
||
from classes.views import ClassListView | ||
from classes.views import ClassDetailView, ClassListView | ||
|
||
urlpatterns = [ | ||
re_path(r"^$", ClassListView.as_view(), name="class-list"), | ||
re_path(r"^(?P<class_id>\d+)/$", ClassDetailView.as_view(), name="class-detail"), | ||
] |
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 |
---|---|---|
|
@@ -33,6 +33,7 @@ | |
"reviews", | ||
"reactions", | ||
"corsheaders", | ||
"favorites", | ||
] | ||
|
||
|
||
|
Oops, something went wrong.