Letters¶
Kod aplikacji¶
Model¶
- class poradnia.letters.models.Attachment(id, letter, attachment)[źródło]¶
- Parametry:
id (AutoField) – Id
letter_id (ForeignKey to
poradnia.letters.models.Letter
) – Letterattachment (FileField) – Plik
- exception DoesNotExist¶
- exception MultipleObjectsReturned¶
- class poradnia.letters.models.AttachmentQuerySet(model=None, query=None, using=None, hints=None)[źródło]¶
- class poradnia.letters.models.Letter(id, case, genre, status, status_changed, accept, name, text, html, signature, created_by, created_by_is_staff, created_on, modified_by, modified_on, message, eml)[źródło]¶
- Parametry:
id (AutoField) – Id
case_id (ForeignKey to
poradnia.cases.models.Case
) – Casegenre (CharField) – Genre
status (StatusField) – Status
status_changed (MonitorField) – Status changed
accept (MonitorField) – Zaakceptowane o
name (CharField) – Przedmiot
text (TextField) – Treść
html (TextField) – Mail sformatowany w html
signature (TextField) – Podpis
created_by_id (ForeignKey to
poradnia.users.models.User
) – Utworzony przezcreated_by_is_staff (BooleanField) – Created by staff member
created_on (DateTimeField) – Utworzone o
modified_by_id (ForeignKey to
poradnia.users.models.User
) – Zmodyfikowany przezmodified_on (DateTimeField) – Zmodyfikowane o
message_id (ForeignKey to
django_mailbox.models.Message
) – Messageeml (FileField) – Oryginalna, pełna treść wiadomości
- exception DoesNotExist¶
- exception MultipleObjectsReturned¶
Widoki¶
Formularze¶
- class poradnia.letters.forms.AddLetterForm(*args, **kwargs)[źródło]¶
- Parametry:
name – Przedmiot
html – Mail sformatowany w HTML
- property media¶
Return all media required to render the widgets on this form.
- class poradnia.letters.forms.AttachmentForm(data=None, files=None, auto_id='id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False, instance=None, use_required_attribute=None, renderer=None)[źródło]¶
- Parametry:
attachment – Plik
- property media¶
Return all media required to render the widgets on this form.
- class poradnia.letters.forms.AttachmentsFieldForm(*args, **kwargs)[źródło]¶
- Parametry:
file_field – Załączniki (wybierz lub upuść tutaj)
- property media¶
Return all media required to render the widgets on this form.
- class poradnia.letters.forms.LetterForm(*args, **kwargs)[źródło]¶
- Parametry:
name – Przedmiot
html – Mail sformatowany w HTML
- property media¶
Return all media required to render the widgets on this form.
- class poradnia.letters.forms.NewCaseForm(*args, **kwargs)[źródło]¶
- Parametry:
name – Przedmiot
text – Treść
client – Klient
email – E-mail użytkownika
email_registration – E-mail
- attachment_cls¶
alias of
Attachment
- clean()[źródło]¶
Hook for doing any extra form-wide cleaning after Field.clean() has been called on every field. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field named «__all__».
- property media¶
Return all media required to render the widgets on this form.