diff --git a/core/__pycache__/admin.cpython-311.pyc b/core/__pycache__/admin.cpython-311.pyc index cd6f855..31f41f5 100644 Binary files a/core/__pycache__/admin.cpython-311.pyc and b/core/__pycache__/admin.cpython-311.pyc differ diff --git a/core/__pycache__/models.cpython-311.pyc b/core/__pycache__/models.cpython-311.pyc index 9aa598b..f101099 100644 Binary files a/core/__pycache__/models.cpython-311.pyc and b/core/__pycache__/models.cpython-311.pyc differ diff --git a/core/__pycache__/views.cpython-311.pyc b/core/__pycache__/views.cpython-311.pyc index 6867ddf..8cca099 100644 Binary files a/core/__pycache__/views.cpython-311.pyc and b/core/__pycache__/views.cpython-311.pyc differ diff --git a/core/admin.py b/core/admin.py index 8c38f3f..60d600c 100644 --- a/core/admin.py +++ b/core/admin.py @@ -1,3 +1,4 @@ from django.contrib import admin +from .models import Achievement -# Register your models here. +admin.site.register(Achievement) \ No newline at end of file diff --git a/core/models.py b/core/models.py index 71a8362..8e78a89 100644 --- a/core/models.py +++ b/core/models.py @@ -1,3 +1,11 @@ from django.db import models -# Create your models here. +class Achievement(models.Model): + title = models.CharField(max_length=200) + student_name = models.CharField(max_length=100) + event_name = models.CharField(max_length=200) + achievement_level = models.CharField(max_length=100) # e.g., "Juara 1 Nasional" + date = models.DateField() + + def __str__(self): + return self.title \ No newline at end of file diff --git a/core/templates/base.html b/core/templates/base.html index 788576e..b0db57d 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -1,11 +1,60 @@ -
+ -