Add: Banner & Profile models to admin page
This commit is contained in:
parent
745cabcfcc
commit
d1fa48cb3b
1 changed files with 10 additions and 2 deletions
|
@ -1,10 +1,18 @@
|
|||
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.
|
||||
|
||||
class Submission_FileAdmin(admin.ModelAdmin):
|
||||
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(User_Banner_Images, User_Banner_ImagesAdmin)
|
||||
admin.site.register(User_Profile_Images, User_Profile_ImagesAdmin)
|
Loading…
Reference in a new issue