Skip to content

Commit

Permalink
Merge pull request howiworkdaily#8 from gvwilson/master
Browse files Browse the repository at this point in the history
Bug fix + doc update
  • Loading branch information
montylounge committed Sep 24, 2011
2 parents c70d43f + 8786521 commit f5a5cc9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,17 @@ 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.

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

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'
Expand Down
3 changes: 3 additions & 0 deletions faq/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f5a5cc9

Please sign in to comment.