From 08fb78d3bfbe8545d66d17f789ff6489d48dff49 Mon Sep 17 00:00:00 2001 From: nohkwanok Date: Mon, 18 Mar 2024 18:51:29 +0900 Subject: [PATCH] formatting --- web/project/terms_of_use/admin.py | 1 - web/project/terms_of_use/models.py | 3 ++- web/project/terms_of_use/tests.py | 1 - web/project/terms_of_use/urls.py | 4 ++-- web/project/terms_of_use/views.py | 3 ++- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/web/project/terms_of_use/admin.py b/web/project/terms_of_use/admin.py index 8c38f3f..b97a94f 100644 --- a/web/project/terms_of_use/admin.py +++ b/web/project/terms_of_use/admin.py @@ -1,3 +1,2 @@ -from django.contrib import admin # Register your models here. diff --git a/web/project/terms_of_use/models.py b/web/project/terms_of_use/models.py index 5ce0dc4..2dd9005 100644 --- a/web/project/terms_of_use/models.py +++ b/web/project/terms_of_use/models.py @@ -1,9 +1,10 @@ from django.db import models + # Create your models here. class TermsOfUse(models.Model): content = models.TextField() updated_at = models.DateTimeField(auto_now=True) def __str__(self): - return f"이용약관 업데이트 시간: {self.updated_at}" \ No newline at end of file + return f"이용약관 업데이트 시간: {self.updated_at}" diff --git a/web/project/terms_of_use/tests.py b/web/project/terms_of_use/tests.py index 7ce503c..4929020 100644 --- a/web/project/terms_of_use/tests.py +++ b/web/project/terms_of_use/tests.py @@ -1,3 +1,2 @@ -from django.test import TestCase # Create your tests here. diff --git a/web/project/terms_of_use/urls.py b/web/project/terms_of_use/urls.py index 8d96eec..e531ec0 100644 --- a/web/project/terms_of_use/urls.py +++ b/web/project/terms_of_use/urls.py @@ -2,5 +2,5 @@ from .views import terms_of_use_view urlpatterns = [ - path('', terms_of_use_view, name='terms_of_use'), -] \ No newline at end of file + path("", terms_of_use_view, name="terms_of_use"), +] diff --git a/web/project/terms_of_use/views.py b/web/project/terms_of_use/views.py index 7dfe596..62d9d14 100644 --- a/web/project/terms_of_use/views.py +++ b/web/project/terms_of_use/views.py @@ -3,6 +3,7 @@ # Create your views here. + def terms_of_use_view(request): terms = TermsOfUse.objects.first() # 가장 최근의 이용약관을 가져옵니다. - return render(request, 'terms_of_use/terms_of_use.html', {'terms': terms}) \ No newline at end of file + return render(request, "terms_of_use/terms_of_use.html", {"terms": terms})