Add: Banner & Profile models to admin page

This commit is contained in:
Aroy-Art 2023-12-30 21:20:53 +01:00
parent 745cabcfcc
commit d1fa48cb3b
Signed by: Aroy
GPG key ID: 583642324A1D2070

View file

@ -1,10 +1,18 @@
from django.contrib import admin from django.contrib import admin
from .models import Submission_File from .models import Submission_File, User_Profile_Images, User_Banner_Images
# Register your models here. # Register your models here.
class Submission_FileAdmin(admin.ModelAdmin): class Submission_FileAdmin(admin.ModelAdmin):
list_display = ('file_name', 'date_added', 'file_hash', 'file',) list_display = ('file_name', 'date_added', 'file_hash', 'file',)
class User_Banner_ImagesAdmin(admin.ModelAdmin):
list_display = ('file_name', 'date_added', 'file_hash', 'file',)
class User_Profile_ImagesAdmin(admin.ModelAdmin):
list_display = ('file_name', 'date_added', 'file_hash', 'file',)
admin.site.register(Submission_File, Submission_FileAdmin) admin.site.register(Submission_File, Submission_FileAdmin)
admin.site.register(User_Banner_Images, User_Banner_ImagesAdmin)
admin.site.register(User_Profile_Images, User_Profile_ImagesAdmin)