Skip to content

후원사 모델 필드 설명 수정 #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions sponsor/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SponsorLevel(models.Model):
)
visible = models.BooleanField(default=True)
price = models.IntegerField(default=0)
limit = models.IntegerField(default=0, help_text="후원사 등급 별 구좌수")
limit = models.IntegerField(default=0, help_text="후원사 등급별 구좌 수")
order = models.IntegerField(default=1)
created_at = models.DateTimeField(auto_now_add=True)
updated_at = models.DateTimeField(auto_now=True)
Expand Down Expand Up @@ -64,8 +64,8 @@ class Meta:

creator = models.ForeignKey(
User,
null=True, # TODO: 추루 로그인 적용 후 입력
blank=True, # TODO: 추루 로그인 적용 후 입력
null=True, # TODO: 추후 로그인 적용 후 입력
blank=True, # TODO: 추후 로그인 적용 후 입력
on_delete=models.CASCADE,
help_text="후원사를 등록한 유저",
related_name="sponsor_creator",
Expand Down Expand Up @@ -110,7 +110,7 @@ class Meta:
max_length=100,
null=True,
blank=True,
help_text="후원사 사업자 등록번호입니다. 세금 계산서 발급에 사용됩니다.",
help_text="후원사 사업자 등록 번호입니다. 세금 계산서 발급에 사용됩니다.",
)
business_registration_file = models.FileField(
null=True,
Expand All @@ -123,13 +123,13 @@ class Meta:
null=True,
blank=True,
upload_to=bank_book_file_upload_to,
help_text="후원사 사업자 등록증 스캔본입니다. 세금 계산서 발급에 사용됩니다.",
help_text="후원사 통장 사본입니다.",
)
url = models.CharField(
max_length=255,
null=True,
blank=True,
help_text="파이콘 홈페이지에 공개되는 후원사 홈페이지 주소입니다.",
help_text="파이콘 한국 홈페이지에 공개되는 후원사 홈페이지 주소입니다.",
)
logo_image = SorlImageField(
upload_to=logo_image_upload_to,
Expand Down
4 changes: 2 additions & 2 deletions sponsor/viewsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@

class SponsorViewSet(ModelViewSet):
serializer_class = SponsorSerializer
permission_classes = [IsOwnerOrReadOnly] # 본인 소유만 수정가능
http_method_names = ["get", "post"] # 지금은 조회/등록만 가능 TODO: 추후 수정기능 추가
permission_classes = [IsOwnerOrReadOnly] # 본인 소유만 수정 가능
http_method_names = ["get", "post"] # 지금은 조회/등록만 가능 TODO: 추후 수정 기능 추가
validator = SponsorValidater()

def get_queryset(self):
Expand Down