First commit
This commit is contained in:
commit
440f5a7df4
1563 changed files with 217996 additions and 0 deletions
16
courses/admin.py
Normal file
16
courses/admin.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
from django.contrib import admin
|
||||
from .models import *
|
||||
|
||||
# Register your models here.
|
||||
class CategoriesAdmin(admin.ModelAdmin):
|
||||
fieldsets = [
|
||||
('Nom', {'fields': ['name']}),
|
||||
('Description', {'fields': ['content']}),
|
||||
('Date de cr"ation', {'fields': ['created_at']}),
|
||||
]
|
||||
list_display = ('name', 'content', 'type')
|
||||
list_filter = ['type', 'name']
|
||||
search_fields = ['name', 'content']
|
||||
|
||||
admin.site.register(Course)
|
||||
admin.site.register(Lesson)
|
||||
Loading…
Add table
Add a link
Reference in a new issue