Skip to content
Browse files

add category_desc field.

  • Loading branch information...
1 parent 74978aa commit d6f80d302632b681bab50912f2240bcce5414cbb @lhwork committed Feb 21, 2012
Showing with 2 additions and 0 deletions.
  1. +1 −0 templates/vote/index.html
  2. +1 −0 vote/models.py
View
1 templates/vote/index.html
@@ -119,6 +119,7 @@
<div>
{% for c in categorys %}
<h2>{{c.category_name}}</h2>
+ <div>{{c.category_desc}}</div>
{% for v in c.category_set.all %}
<div>
<script type="text/javascript">
View
1 vote/models.py
@@ -5,6 +5,7 @@
class Category(models.Model):
category_name = models.CharField(_('Category Name'),max_length=255)
+ category_desc = models.TextField(verbose_name=_('Description'),null=True,blank=True,default='')
category_order = models.IntegerField(_('Order'),default=0, help_text=_('Minimal at front'))
def __unicode__(self):

0 comments on commit d6f80d3

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