Skip to content

Commit

Permalink
PopularProposal with no rejection reason
Browse files Browse the repository at this point in the history
  • Loading branch information
Felipe Álvarez committed Apr 19, 2016
1 parent 05ed054 commit 0cf471d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
20 changes: 20 additions & 0 deletions popular_proposal/migrations/0012_auto_20160419_2151.py
@@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-04-19 21:51
from __future__ import unicode_literals

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('popular_proposal', '0011_auto_20160418_2332'),
]

operations = [
migrations.AlterField(
model_name='proposaltemporarydata',
name='rejected_reason',
field=models.TextField(blank=True, null=True),
),
]
5 changes: 3 additions & 2 deletions popular_proposal/models.py
Expand Up @@ -36,7 +36,8 @@ class Statuses(DjangoChoices):
area = models.ForeignKey(Area, related_name='temporary_proposals')
data = PickledObjectField()
rejected = models.BooleanField(default=False)
rejected_reason = models.TextField()
rejected_reason = models.TextField(null=True,
blank=True)
comments = PickledObjectField()
status = models.CharField(max_length=16,
choices=Statuses.choices,
Expand Down Expand Up @@ -122,7 +123,7 @@ class PopularProposal(models.Model):

def __str__(self):
return self.title

def get_absolute_url(self):
return reverse('popular_proposals:detail', kwargs={'slug': self.slug})

Expand Down

0 comments on commit 0cf471d

Please sign in to comment.