Meilleur affichage des catégories.
This commit is contained in:
parent
efe2ca08c1
commit
2215fbc9d7
1 changed files with 6 additions and 0 deletions
|
@ -12,6 +12,9 @@ class Category(models.Model):
|
|||
def get_absolute_url(self):
|
||||
return reverse('content:category-list', kwargs={'category_id':self.id})
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
||||
class Content(models.Model):
|
||||
"""Un contenu du site (vidéo)."""
|
||||
|
@ -33,3 +36,6 @@ class Content(models.Model):
|
|||
verbose_name="Catégorie",
|
||||
null=True
|
||||
)
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
|
Loading…
Reference in a new issue