customized admin styling, added get_absolute_url for Note model,
added inline in Sujet admin to show FicheStatistique
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from django.contrib import admin
|
||||
|
||||
# Register your models here.
|
||||
|
||||
|
||||
@@ -84,3 +84,9 @@ class FicheStatistique(models.Model):
|
||||
completed += 1
|
||||
percentage = int(completed / len(observed) * 100)
|
||||
return percentage
|
||||
|
||||
def __str__(self):
|
||||
return "<Statistiques: %s>" % self.sujet
|
||||
|
||||
class Meta:
|
||||
verbose_name = "Fiche statistique"
|
||||
|
||||
Reference in New Issue
Block a user