File: //lib/python3/dist-packages/django/views/generic/__pycache__/edit.cpython-310.pyc
o
3�a� � @ s d dl mZ d dlmZ d dlmZ d dlmZm Z m
Z
d dlmZm
Z
mZ G dd� de�ZG dd � d ee
�ZG d
d� de
�ZG dd
� d
ee�ZG dd� de e�ZG dd� dee�ZG dd� dee�ZG dd� dee�ZG dd� dee�ZG dd� d�ZG dd� dee�ZG dd� dee�ZdS )� )�ImproperlyConfigured)�models)�HttpResponseRedirect)�ContextMixin�TemplateResponseMixin�View)�BaseDetailView�SingleObjectMixin�!SingleObjectTemplateResponseMixinc sr e Zd ZdZi ZdZdZdZdd� Zdd� Z dd� Z
dd d
�Zdd� Zd
d� Z
dd� Zdd� Z� fdd�Z� ZS )� FormMixinz5Provide a way to show and handle a form in a request.Nc C s
| j �� S )z6Return the initial data to use for forms on this view.)�initial�copy��self� r �;/usr/lib/python3/dist-packages/django/views/generic/edit.py�get_initial s
zFormMixin.get_initialc C � | j S )z#Return the prefix to use for forms.)�prefixr r r r �
get_prefix � zFormMixin.get_prefixc C r )zReturn the form class to use.)�
form_classr r r r �get_form_class r zFormMixin.get_form_classc C s"