Changeset - 63d07f8db31c
[Not reviewed]
0 1 0
Luke Hatcher - 12 years ago 2012-07-18 23:21:21
lukeman@gmail.com
mark strings for i18n
1 file changed with 9 insertions and 6 deletions:
0 comments (0 inline, 0 general)
symposion/proposals/models.py
Show inline comments
...
 
@@ -2,12 +2,13 @@ import datetime
 
import os
 
import uuid
 

	
 
from django.core.urlresolvers import reverse
 
from django.db import models
 
from django.db.models import Q
 
from django.utils.translation import ugettext_lazy as _
 

	
 
from django.contrib.auth.models import User
 

	
 
import reversion
 

	
 
from markitup.fields import MarkupField
...
 
@@ -54,13 +55,13 @@ class ProposalKind(models.Model):
 
    Note that if you have different deadlines, reviewers, etc. you'll want
 
    to distinguish the section as well as the kind.
 
    """
 
    
 
    section = models.ForeignKey(Section, related_name="proposal_kinds")
 
    
 
    name = models.CharField("name", max_length=100)
 
    name = models.CharField(_("Name"), max_length=100)
 
    slug = models.SlugField()
 
    
 
    def __unicode__(self):
 
        return self.name
 

	
 

	
...
 
@@ -69,21 +70,23 @@ class ProposalBase(models.Model):
 
    objects = InheritanceManager()
 
    
 
    kind = models.ForeignKey(ProposalKind)
 
    
 
    title = models.CharField(max_length=100)
 
    description = models.TextField(
 
        _("Brief Outline"),
 
        max_length=400,  # @@@ need to enforce 400 in UI
 
        help_text="If your talk is accepted this will be made public and printed in the program. Should be one paragraph, maximum 400 characters."
 
    )
 
    abstract = MarkupField(
 
        help_text="Detailed description and outline. Will be made public if your talk is accepted. Edit using <a href='http://warpedvisions.org/projects/markdown-cheat-sheet/' target='_blank'>Markdown</a>."
 
        _("Detailed Abstract"),
 
        help_text=_("Detailed description and outline. Will be made public if your talk is accepted. Edit using <a href='http://daringfireball.net/projects/markdown/basics' target='_blank'>Markdown</a>.")
 
    )
 
    additional_notes = MarkupField(
 
        blank=True,
 
        help_text="Anything else you'd like the program committee to know when making their selection: your past speaking experience, open source community experience, etc. Edit using <a href='http://warpedvisions.org/projects/markdown-cheat-sheet/' target='_blank'>Markdown</a>."
 
        help_text=_("Anything else you'd like the program committee to know when making their selection: your past speaking experience, open source community experience, etc. Edit using <a href='http://daringfireball.net/projects/markdown/basics' target='_blank'>Markdown</a>.")
 
    )
 
    submitted = models.DateTimeField(
 
        default=datetime.datetime.now,
 
        editable=False,
 
    )
 
    speaker = models.ForeignKey("speakers.Speaker", related_name="proposals")
...
 
@@ -114,15 +117,15 @@ class AdditionalSpeaker(models.Model):
 
    
 
    SPEAKING_STATUS_PENDING = 1
 
    SPEAKING_STATUS_ACCEPTED = 2
 
    SPEAKING_STATUS_DECLINED = 3
 
    
 
    SPEAKING_STATUS = [
 
        (SPEAKING_STATUS_PENDING, "Pending"),
 
        (SPEAKING_STATUS_ACCEPTED, "Accepted"),
 
        (SPEAKING_STATUS_DECLINED, "Declined"),
 
        (SPEAKING_STATUS_PENDING, _("Pending")),
 
        (SPEAKING_STATUS_ACCEPTED, _("Accepted")),
 
        (SPEAKING_STATUS_DECLINED, _("Declined")),
 
    ]
 
    
 
    speaker = models.ForeignKey("speakers.Speaker")
 
    proposalbase = models.ForeignKey(ProposalBase)
 
    status = models.IntegerField(choices=SPEAKING_STATUS, default=SPEAKING_STATUS_PENDING)
 
    
0 comments (0 inline, 0 general)