Пример #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
     }
Пример #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
     }
Пример #3
0
 def request_note_html(self):
     return markdown(self.request_note)
Пример #4
0
 def description_html(self):
     return markdown(self.description)
Пример #5
0
 def request_note_html(self):
     return markdown(self.request_note)
Пример #6
0
 def description_html(self):
     return markdown(self.description)
Пример #7
0
 def formatted_description(self):
     return markdown(self.description)
Пример #8
0
 def formatted_description(self):
     return markdown(self.description)