Events - wydarzenia

Kod aplikacji

Model

class poradnia.events.models.Event(id, case, deadline, completed, public, time, text, created_by, created_on, modified_by, modified_on)[źródło]
Parametry:
  • id (AutoField) – Id

  • case_id (ForeignKey to poradnia.cases.models.Case) – Case

  • deadline (BooleanField) – Istotne wydarzenie, szczególnie podkreślone np. na liście spraw.

  • completed (BooleanField) – Wydarzenie zostało zakończone, nie będzie przypomnień.

  • public (BooleanField) – Zdarzenie jest widoczne dla klientów (ext).

  • time (DateTimeField) – Czas

  • text (TextField) – Przedmiot

  • created_by_id (ForeignKey to poradnia.users.models.User) – Utworzony przez

  • created_on (DateTimeField) – Utworzone o

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

  • modified_on (DateTimeField) – Zmodyfikowane o

exception DoesNotExist
exception MultipleObjectsReturned
class poradnia.events.models.EventQuerySet(model=None, query=None, using=None, hints=None)[źródło]
class poradnia.events.models.Reminder(id, created, modified, event, user, active)[źródło]
Parametry:
  • id (AutoField) – Id

  • created (AutoCreatedField) – Utworzony

  • modified (AutoLastModifiedField) – Zmodyfikowany

  • event_id (ForeignKey to poradnia.events.models.Event) – Event

  • user_id (ForeignKey to poradnia.users.models.User) – Odbiorca

  • active (BooleanField) – Status aktywności

exception DoesNotExist
exception MultipleObjectsReturned

Widoki

class poradnia.events.views.CalendarEventView(**kwargs)[źródło]
Parametry:

url_nameevents:calendar

get_allow_empty()[źródło]

Return True if the view should display empty lists and False if a 404 should be raised instead.

get_context_data(**kwargs)[źródło]

Get the context for this view.

model

alias of Event

class poradnia.events.views.CalendarListView(**kwargs)[źródło]
Parametry:

url_nameevents:calendar

model

alias of Event

class poradnia.events.views.EventAjaxDatatableView(**kwargs)[źródło]

View to provide table list of all Events with ajax data.

Parametry:

url_nameevents:events_table_ajax_data

get_latest_by(request)[źródło]

Override to customize based of request.

Provides the name of the column to be used for global date range filtering. Return either «», a fieldname or None.

When None is returned, in model’s Meta «get_latest_by» attributed will be used.

model

alias of Event

class poradnia.events.views.EventCreateView(**kwargs)[źródło]
Parametry:

url_nameevents:add

form_class

alias of EventForm

form_valid(form)[źródło]

Call the super first, so that when overriding get_form_valid_message, we have access to the newly saved object.

get_form_kwargs(*args, **kwargs)[źródło]

Return the keyword arguments for instantiating the form.

get_form_valid_message()[źródło]

Validate that form_valid_message is set and is either a unicode or str object.

model

alias of Event

class poradnia.events.views.EventTableView(**kwargs)[źródło]

View for displaying template with Events table.

Parametry:

url_nameevents:table

class poradnia.events.views.EventUpdateView(**kwargs)[źródło]
Parametry:

url_nameevents:edit

form_class

alias of EventForm

form_valid(form)[źródło]

Call the super first, so that when overriding get_form_valid_message, we have access to the newly saved object.

get_form_kwargs()[źródło]

Return the keyword arguments for instantiating the form.

get_form_valid_message()[źródło]

Validate that form_valid_message is set and is either a unicode or str object.

get_object(*args, **kwargs)[źródło]

Return the object the view is displaying.

Require self.queryset and a pk or slug argument in the URLconf. Subclasses can override this to return any object.

model

alias of Event

class poradnia.events.views.ICalendarView(**kwargs)[źródło]
Parametry:

url_nameevents:calendar_ical

get_queryset()[źródło]

Return the list of items for this view.

The return value must be an iterable and may be an instance of QuerySet in which case QuerySet specific behavior will be enabled.

model

alias of Event

Formularze

class poradnia.events.forms.EventForm(*args, **kwargs)[źródło]
Parametry:
  • deadline – Termin

  • completed – Zakończone

  • public – Publiczne

  • time – Czas

  • text – Przedmiot

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.