Skip to content

Commit

Permalink
arsnel 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Hwang-Jaeryeong committed Jan 23, 2024
1 parent 96c3b5c commit ce29518
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 5 deletions.
Binary file added media/stadium_images/emirate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified stadium/__pycache__/models.cpython-311.pyc
Binary file not shown.
Binary file modified stadium/__pycache__/serializers.cpython-311.pyc
Binary file not shown.
Binary file modified stadium/__pycache__/views.cpython-311.pyc
Binary file not shown.
4 changes: 4 additions & 0 deletions stadium/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# stadium/models.py


from django.db import models
from accounts.models import CustomUser

Expand All @@ -8,3 +11,4 @@ class Stadium(models.Model):

def __str__(self):
return self.team_name

2 changes: 2 additions & 0 deletions stadium/serializers.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# stadium/serializers.py

from rest_framework import serializers
from .models import Stadium

Expand Down
6 changes: 1 addition & 5 deletions stadium/views.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
from rest_framework.views import APIView
from rest_framework.response import Response
from rest_framework import status
from .models import Stadium
from .serializers import StadiumSerializer
# stadium/views.py
from rest_framework.parsers import MultiPartParser, FormParser

from rest_framework.views import APIView
Expand Down

0 comments on commit ce29518

Please sign in to comment.