Skip to content
Browse files

slug no longer mandatory

  • Loading branch information...
1 parent f5a5cc9 commit 6287c0681c4911d8cc220bd5c8d50d3c70c7e936 @cpinto committed Apr 8, 2012
Showing with 4 additions and 3 deletions.
  1. +0 −1 faq/faq
  2. +1 −1 faq/models.py
  3. +3 −1 setup.py
View
1 faq/faq
View
2 faq/models.py
@@ -38,7 +38,7 @@ class Question(models.Model):
text = models.TextField(_('question'), help_text=_('The actual question itself.'))
answer = models.TextField(_('answer'), blank=True, help_text=_('The answer text.'))
topic = models.ForeignKey(Topic, verbose_name=_('topic'), related_name='questions')
- slug = models.SlugField(_('slug'), max_length=100)
+ slug = models.SlugField(_('slug'), max_length=100,blank=True)
status = models.IntegerField(_('status'),
choices=STATUS_CHOICES, default=INACTIVE,
help_text=_("Only questions with their status set to 'Active' will be "
View
4 setup.py
@@ -13,8 +13,10 @@ def read(fname):
author ='Kevin Fricovsky',
author_email = 'kfricovsky@gmail.com',
url = 'http://github.com/howiworkdaily/django-faq',
-
packages = find_packages(exclude=['example']),
+ package_data={
+ 'faq':['templates/*.html','templates/*/*.html','templates/*/*/*.html'],
+ },
zip_safe = False,
classifiers = [

0 comments on commit 6287c06

Please sign in to comment.
Something went wrong with that request. Please try again.