Skip to content

Commit f5a5cc9

Browse files
committed
Merge pull request howiworkdaily#8 from gvwilson/master
Bug fix + doc update
2 parents c70d43f + 8786521 commit f5a5cc9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,17 @@ Django 1.3, Python 2.5 or greater.
3434
Installation
3535
============
3636

37-
1. ``pip install django-faq``
37+
1. ``pip install -e git://github.com/howiworkdaily/django-faq.git#egg=django_faq``
3838

3939
2. Add ``"faq"`` to your ``INSTALLED_APPS`` setting.
4040

4141
3. Wire up the FAQ views by adding a line to your URLconf::
4242

4343
url('^faq/', include('faq.urls'))
4444

45+
Note: do *not* use ``pip install django-faq`` to install this app, as that
46+
currently grabs another package entirely.
47+
4548
If you want to customize the templates then either create an 'faq' directory in
4649
your projects templates location, or you can also pass along custom
4750
'template_name' arguments by creating your own view wrappers around the 'faq'

faq/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ class Topic(models.Model):
1414
sort_order = models.IntegerField(_('sort order'), default=0,
1515
help_text=_('The order you would like the topic to be displayed.'))
1616

17+
def get_absolute_url(self):
18+
return '/faq/' + self.slug
19+
1720
class Meta:
1821
verbose_name = _("Topic")
1922
verbose_name_plural = _("Topics")

0 commit comments

Comments
 (0)