Archive for April, 2013


django_template_standard

Advertisements

DeleteView

Variables:

  • template_name
  • queryset
  • success_url

Functions:

  • get_queryset
  • get_object
  • delete

Template:

  • object

DatailView
Variables:

  • template_name
  • queryset

Functions:

  • get_object(self, queryset=None)

Template:

  • object

Create View
Variables:

  • template_name
  • initial = {}
  • form_class
  • success_url
  • model
  • queryset

Functions:

  • get_initial
  • get_success_url
  • get_queryset
  • get_object
  • form_valid(form) # important
  • form_invalid(form) # important

Templates:

  • form

class ListView <- (MultipleObjectTemplateResponseMixin, BaseListView)
Variables:

  • template_name # required
  • allow_empty
  • queryset # required

Functions:

  • get_queryset (self)

Template:

  • object_list