Ejemplo n.º 1
0
    # perceived_value = None

    class Meta:
        verbose_name = "PyCon talk proposal"

    def as_dict(self, details=False):
        answer = super(PyConTalkProposal, self).as_dict(details=details)
        if details:
            answer['duration'] = self.get_duration_display()
            answer['outline'] = self.outline
            answer['audience'] = self.audience
            answer['recording_release'] = self.recording_release
        return answer


register_proposal_model('talk', PyConTalkProposal, 'Talks')


class PyConCharlaProposal(PyConTalkProposal):
    class Meta:
        verbose_name = "PyCon Charlas proposal"


register_proposal_model('charla', PyConCharlaProposal, 'Charlas')


class PyConLightningTalkProposal(PyConProposal):
    class Meta:
        verbose_name = "PyCon lightning talk proposal"

Ejemplo n.º 2
0
    # perceived_value = None

    class Meta:
        verbose_name = "PyCon talk proposal"

    def as_dict(self, details=False):
        answer = super(PyConTalkProposal, self).as_dict(details=details)
        if details:
            answer['duration'] = self.get_duration_display()
            answer['outline'] = self.outline
            answer['audience'] = self.audience
            answer['recording_release'] = self.recording_release
        return answer


register_proposal_model('talk', PyConTalkProposal, 'Talks')

class PyConCharlaProposal(PyConTalkProposal):

    class Meta:
        verbose_name = "PyCon Charlas proposal"

register_proposal_model('charla', PyConCharlaProposal, 'Charlas')


class PyConLightningTalkProposal(PyConProposal):

    class Meta:
        verbose_name = "PyCon lightning talk proposal"