diff options
Diffstat (limited to 'forum/models.py')
-rw-r--r-- | forum/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/forum/models.py b/forum/models.py index 4d8894e4..7de703ca 100644 --- a/forum/models.py +++ b/forum/models.py @@ -179,6 +179,9 @@ class Question(models.Model): """Creates a list of Tag names from the ``tagnames`` attribute.""" return [name for name in self.tagnames.split(u' ')] + def tagname_meta_generator(self): + return ','.join([str(tag) for tag in self.tagname_list()]) + def get_absolute_url(self): return '%s%s' % (reverse('question', args=[self.id]), self.title.replace(' ', '-')) |