Adding the core applications code to the repository
This commit is contained in:
14
sujets/admin.py
Normal file
14
sujets/admin.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import Sujet
|
||||
|
||||
|
||||
@admin.register(Sujet)
|
||||
class SujetAdmin(admin.ModelAdmin):
|
||||
|
||||
fieldsets = [
|
||||
('Identité', {'fields': [('nom', 'prenom'), 'genre']}),
|
||||
('Informations', {'fields': ['age', ]}),
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user