herreweb_site/2023-12-24-old/herreweb_backend/project/admin.py

9 lines
211 B
Python

from django.contrib import admin
from .models import Project
class ProjectAdmin(admin.ModelAdmin):
list = ('title', 'description', 'visible')
# Register projects
admin.site.register(Project, ProjectAdmin)