Skip to content

feat: cms Page & Sitemap list, retrieve API 추가#4

Merged
earthyoung merged 4 commits intomainfrom
feature/cms-api
May 3, 2025
Merged

feat: cms Page & Sitemap list, retrieve API 추가#4
earthyoung merged 4 commits intomainfrom
feature/cms-api

Conversation

@earthyoung
Copy link
Contributor

cms app의 Page, Sitemap 모델을 목록 조회 및 단건 조회하는 API 코드를 작성했습니다.

중간에 django-modeltranslation과 simple-history 라이브러리를 적용하는 과정에서 AppConfig 부분 코드를 수정했습니다.

django-modeltranslation이 모델에 적용되고 나서 simple-history가 적용되어야 하는데, 이를 위해서 모델에 먼저 simple-history 필드를 선언하는 부분을 없애고 app이 만들어질 때 동적으로 django-modeltranslation을 적용한 다음 simple-history 라이브러리를 register하는 방식을 사용해 봤습니다. 혹시 문제가 있거나 더 좋은 방법을 아신다면 피드백 주시면 감사하겠습니다:)

@earthyoung earthyoung requested review from JaeHyuckSa and MU-Software and removed request for JaeHyuckSa and MU-Software April 27, 2025 09:34
@earthyoung earthyoung merged commit 2432bb7 into main May 3, 2025
1 check passed
@earthyoung earthyoung deleted the feature/cms-api branch May 31, 2025 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants