From 2e0e7bb53a487537a28d4aa5349d23def80fbb7a Mon Sep 17 00:00:00 2001 From: Dave Cranwell Date: Thu, 6 Feb 2014 13:54:54 +0000 Subject: [PATCH] added more instructive description for slug field --- wagtail/wagtailcore/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtail/wagtailcore/models.py b/wagtail/wagtailcore/models.py index 71e1474481..88e4c29787 100644 --- a/wagtail/wagtailcore/models.py +++ b/wagtail/wagtailcore/models.py @@ -137,7 +137,7 @@ class Page(MP_Node, ClusterableModel, Indexed): __metaclass__ = PageBase title = models.CharField(max_length=255, help_text="The page title as you'd like it to be seen by the public") - slug = models.SlugField() + slug = models.SlugField(help_text="The name of the page as it will appear in URLs e.g http://domain.com/blog/[my-slug]/") # TODO: enforce uniqueness on slug field per parent (will have to be done at the Django # level rather than db, since there is no explicit parent relation in the db) content_type = models.ForeignKey('contenttypes.ContentType', related_name='pages')