Skip to content

Commit

Permalink
feat(global-notice): add admin
Browse files Browse the repository at this point in the history
  • Loading branch information
ddungiii committed Jan 2, 2024
1 parent 2660170 commit 3698979
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion apps/global_notice/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
from django.contrib import admin

# Register your models here.
from apps.global_notice.models import GlobalNotice
from ara.classes.admin import MetaDataModelAdmin


@admin.register(GlobalNotice)
class FAQAdmin(MetaDataModelAdmin):
list_display = ("title", "content", "started_at", "expired_at")
search_fields = ("title", "content")
1 change: 1 addition & 0 deletions apps/global_notice/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
class GlobalNotice(MetaDataModel):
class Meta(MetaDataModel.Meta):
verbose_name = "글로벌 공지"
verbose_name_plural = "글로벌 공지 목록"

title = models.CharField(verbose_name="제목", max_length=256)
content = models.TextField(verbose_name="본문")
Expand Down

0 comments on commit 3698979

Please sign in to comment.