Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

correcting translation and disabling future fields

  • Loading branch information...
commit 44c89da01348481451820ab406880cb01678ff3e 1 parent 02ae7ab
Julien Fache authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 minipoll/models.py
8 minipoll/models.py
View
@@ -3,7 +3,7 @@
from django.db import models
from django.contrib.auth.models import User
-from django.utils.translation import ugettext as _
+from django.utils.translation import ugettext_lazy as _
from minipoll.managers import PollPublishedManager
from minipoll.managers import DRAFT, PUBLISHED, ARCHIVED
@@ -17,7 +17,7 @@ class Poll(models.Model):
"""A simple poll"""
title = models.CharField(_('title'), max_length=250)
description = models.TextField(_('description'), blank=True)
- open_response = models.BooleanField(_('open response'))
+ #open_response = models.BooleanField(_('open response'))
slug = models.SlugField(_('slug'))
creator = models.ForeignKey(User, verbose_name=_('creator'))
@@ -77,8 +77,8 @@ class Vote(models.Model):
"""A vote for a poll"""
poll = models.ForeignKey(Poll, verbose_name=_('poll'))
choice = models.ForeignKey(Choice, verbose_name=_('choice'))
- comment = models.CharField(_('comment'), max_length=250,
- blank=True)
+ #comment = models.CharField(_('comment'), max_length=250,
+ # blank=True)
voter = models.ForeignKey(User, verbose_name=_('voter'),
blank=True, null=True)
Please sign in to comment.
Something went wrong with that request. Please try again.