Browse Source

Meilleur affichage des catégories.

master
Hugo LEVY-FALK 8 years ago
parent
commit
2215fbc9d7
  1. 6
      content/models.py

6
content/models.py

@ -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…
Cancel
Save