Letters

Kod aplikacji

Model

class poradnia.letters.models.Attachment(id, letter, attachment)[źródło]
Parametry:
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) – Case

  • genre (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 przez

  • created_by_is_staff (BooleanField) – Created by staff member

  • created_on (DateTimeField) – Utworzone o

  • modified_by_id (ForeignKey to poradnia.users.models.User) – Zmodyfikowany przez

  • modified_on (DateTimeField) – Zmodyfikowane o

  • message_id (ForeignKey to django_mailbox.models.Message) – Message

  • eml (FileField) – Oryginalna, pełna treść wiadomości

exception DoesNotExist
exception MultipleObjectsReturned
class poradnia.letters.models.LetterQuerySet(model=None, query=None, using=None, hints=None)[źródło]
last()[źródło]

Return the last object of a query or None if no match is found.

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.

save(commit=True, *args, **kwargs)[źródło]

Save this form’s self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance.

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.

save(commit=True, *args, **kwargs)[źródło]

Save this form’s self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance.

class poradnia.letters.forms.MultipleFileInput(attrs=None)[źródło]
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.

save(commit=True, *args, **kwargs)[źródło]

Save this form’s self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance.

class poradnia.letters.forms.SendLetterForm(*args, **kwargs)[źródło]
Parametry:

comment – Komentarz dla zespołu

property media

Return all media required to render the widgets on this form.

save(commit=True, *args, **kwargs)[źródło]

Save this form’s self.instance object if commit=True. Otherwise, add a save_m2m() method to the form which can be called after the instance is saved manually at a later time. Return the model instance.

class poradnia.letters.forms.SimpleSubmit(name, value, **kwargs)[źródło]