Adding the core applications code to the repository

This commit is contained in:
artus
2016-08-05 10:41:43 +02:00
parent 243ff9153e
commit 5f4faf46ec
155 changed files with 13176 additions and 0 deletions

14
sujets/admin.py Normal file
View 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', ]}),
]