Skip to content

Commit

Permalink
add category_desc field.
Browse files Browse the repository at this point in the history
  • Loading branch information
lhwork committed Feb 21, 2012
1 parent 74978aa commit d6f80d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions templates/vote/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
1 change: 1 addition & 0 deletions vote/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d6f80d3

Please sign in to comment.