diff --git a/application/models.py b/application/models.py index a4b8aef..2efeada 100644 --- a/application/models.py +++ b/application/models.py @@ -1,5 +1,6 @@ from django.db import models from django.utils import timezone +from taggit.managers import TaggableManager class Post(models.Model): @@ -10,6 +11,7 @@ class Post(models.Model): default=timezone.now) published_date = models.DateTimeField( blank=True, null=True) + tags = TaggableManager() def publish(self): self.published_date = timezone.now() diff --git a/application/templates/base.html b/application/templates/base.html index e43f79e..9d86d2a 100644 --- a/application/templates/base.html +++ b/application/templates/base.html @@ -33,7 +33,6 @@ {% endif %} {% if user.is_staff %}
Your username and password didn't match. Please try again.
-{% endif %} {% if next %} {% if user.is_authenticated %} +{% endif %} +{% if next %} +{% if user.is_authenticated %}Your account doesn't have access to this page. To proceed, please login with an account that has access.
{% else %}Please login to see this page.
-{% endif %} {% endif %} +{% endif %} +{% endif %}