Ejemplo n.º 1
0
 def as_dict(self):
     return {
         "pk": self.pk, "name": self.name,
         "description_markdown": markdown(self.description),
         "request_note_markdown": self.request_note_markdown,
         "description": self.description,
         "letter_start": self.letter_start,
         "letter_end": self.letter_end,
         "letter_start_form": self.letter_start_form,
         "letter_end_form": self.letter_end_form,
         "jurisdiction": self.jurisdiction.name,
         "jurisdiction_id": self.jurisdiction.id,
         "email_only": self.email_only
     }
Ejemplo n.º 2
0
 def as_dict(self):
     return {
         "pk": self.pk,
         "name": self.name,
         "description_markdown": markdown(self.description),
         "request_note_markdown": self.request_note_markdown,
         "description": self.description,
         "letter_start": self.letter_start,
         "letter_end": self.letter_end,
         "letter_start_form": self.letter_start_form,
         "letter_end_form": self.letter_end_form,
         "jurisdiction": self.jurisdiction.name,
         "jurisdiction_id": self.jurisdiction.id,
         "email_only": self.email_only
     }
Ejemplo n.º 3
0
 def request_note_html(self):
     return markdown(self.request_note)
Ejemplo n.º 4
0
 def description_html(self):
     return markdown(self.description)
Ejemplo n.º 5
0
 def request_note_html(self):
     return markdown(self.request_note)
Ejemplo n.º 6
0
 def description_html(self):
     return markdown(self.description)
Ejemplo n.º 7
0
 def formatted_description(self):
     return markdown(self.description)
Ejemplo n.º 8
0
 def formatted_description(self):
     return markdown(self.description)