diff --git a/README.rst b/README.rst index 59e4de9..ac1ac14 100644 --- a/README.rst +++ b/README.rst @@ -34,7 +34,7 @@ Django 1.3, Python 2.5 or greater. Installation ============ -1. ``pip install django-faq`` +1. ``pip install -e git://github.com/howiworkdaily/django-faq.git#egg=django_faq`` 2. Add ``"faq"`` to your ``INSTALLED_APPS`` setting. @@ -42,6 +42,9 @@ Installation url('^faq/', include('faq.urls')) +Note: do *not* use ``pip install django-faq`` to install this app, as that +currently grabs another package entirely. + If you want to customize the templates then either create an 'faq' directory in your projects templates location, or you can also pass along custom 'template_name' arguments by creating your own view wrappers around the 'faq' diff --git a/faq/models.py b/faq/models.py index 73d4e50..a60332d 100644 --- a/faq/models.py +++ b/faq/models.py @@ -14,6 +14,9 @@ class Topic(models.Model): sort_order = models.IntegerField(_('sort order'), default=0, help_text=_('The order you would like the topic to be displayed.')) + def get_absolute_url(self): + return '/faq/' + self.slug + class Meta: verbose_name = _("Topic") verbose_name_plural = _("Topics")