X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/3ce16dd425565e6fc31c49c98bf8d88e09183748..c11e2882169bdc06828c782e65bde3f13a03d044:/contrib/shipherd/models.py?ds=sidebyside diff --git a/contrib/shipherd/models.py b/contrib/shipherd/models.py index 2eacc89..8efc57a 100644 --- a/contrib/shipherd/models.py +++ b/contrib/shipherd/models.py @@ -169,7 +169,7 @@ class Navigation(Entity): objects = NavigationManager() node = models.ForeignKey(Node, related_name='navigation_set', help_text="Be available as navigation for this node.") - key = models.CharField(max_length=255, validators=[RegexValidator("\w+")], help_text="Must contain one or more alphanumeric characters or underscores.") + key = models.CharField(max_length=255, validators=[RegexValidator("\w+")], help_text="Must contain one or more alphanumeric characters or underscores.", db_index=True) depth = models.PositiveSmallIntegerField(default=DEFAULT_NAVIGATION_DEPTH, validators=[MinValueValidator(1)], help_text="Defines the maximum display depth of this navigation.") def __init__(self, *args, **kwargs):