+
    TjO#                     x   ^ RI Ht ^ RIHt ^ RIHt ^ RIHt ^ RIH	t	H
t
Ht ^ RIHtHtHt  ! R R]	4      t ! R	 R
]]4      t ! R R]4      t ! R R]]4      t ! R R]
]4      t ! R R]]4      t ! R R]]4      t ! R R]]4      t ! R R]]4      t ! R R4      t ! R R]]]4      t ! R R]]4      tR# )     )ImproperlyConfigured)Form)models)HttpResponseRedirect)ContextMixinTemplateResponseMixinView)BaseDetailViewSingleObjectMixin!SingleObjectTemplateResponseMixinc                   z   a a ] tR t^t oRt/ tRtRtRtR t	R t
R tRR ltR tR tR	 tR
 tV 3R ltRtVtV ;t# )	FormMixinz5Provide a way to show and handle a form in a request.Nc                6    V P                   P                  4       # )z6Return the initial data to use for forms on this view.)initialcopyselfs   &N/var/www/idalgo/venv/lib/python3.14/site-packages/django/views/generic/edit.pyget_initialFormMixin.get_initial   s    ||  ""    c                    V P                   # )z#Return the prefix to use for forms.)prefixr   s   &r   
get_prefixFormMixin.get_prefix   s    {{r   c                    V P                   # )zReturn the form class to use.)
form_classr   s   &r   get_form_classFormMixin.get_form_class   s    r   c                V    Vf   V P                  4       pV! R/ V P                  4       B # )z7Return an instance of the form to be used in this view. )r   get_form_kwargs)r   r   s   &&r   get_formFormMixin.get_form!   s-    ,,.J3D00233r   c                    RV P                  4       RV P                  4       /pV P                  P                  R9   d>   VP	                  RV P                  P
                  RV P                  P                  /4       V# )8Return the keyword arguments for instantiating the form.r   r   datafiles)POSTPUT)r   r   requestmethodupdater)   FILES)r   kwargss   & r   r"   FormMixin.get_form_kwargs'   so     t'')doo'

 <</1MMDLL--T\\// r   c                f    V P                   '       g   \        R4      h\        V P                   4      # )<Return the URL to redirect to after processing a valid form.-No URL to redirect to. Provide a success_url.)success_urlr   strr   s   &r   get_success_urlFormMixin.get_success_url7   s+    &'VWW4##$$r   c                4    \        V P                  4       4      # )z3If the form is valid, redirect to the supplied URL.)r   r6   r   forms   &&r   
form_validFormMixin.form_valid=   s    #D$8$8$:;;r   c                D    V P                  V P                  VR7      4      # )z0If the form is invalid, render the invalid form.)r:   render_to_responseget_context_datar9   s   &&r   form_invalidFormMixin.form_invalidA   s!    &&t'<'<$'<'GHHr   c                X   < RV9  d   V P                  4       VR&   \        SV `  ! R/ VB # )z&Insert the form into the context dict.r:   r!   )r#   superr@   r   r/   	__class__s   &,r   r@   FormMixin.get_context_dataE   s-    !]]_F6Nw'1&11r   r!   N)__name__
__module____qualname____firstlineno____doc__r   r   r4   r   r   r   r   r#   r"   r6   r;   rA   r@   __static_attributes____classdictcell____classcell__rF   __classdict__s   @@r   r   r      sO     ?GJKF#4 %<I2 2r   r   c                   R   a a ] tR t^Lt oRtRtR tV 3R ltR tV 3R lt	Rt
VtV ;t# )ModelFormMixinz:Provide a way to show and handle a ModelForm in a request.Nc                   V P                   e   V P                  '       d   \        R4      hV P                  '       d   V P                  # V P                  e   V P                  pM@\	        V RR4      e   V P
                  P                  pMV P                  4       P                  pV P                   f'   \        RV P                  P                  ,          4      h\        P                  ! WP                   R7      # )z*Return the form class to use in this view.Nz;Specifying both 'fields' and 'form_class' is not permitted.objectzUUsing ModelFormMixin (base class of %s) without the 'fields' attribute is prohibited.)fields)rW   r   r   modelgetattrrV   rF   get_querysetrI   model_formsmodelform_factory)r   rX   s   & r   r   ModelFormMixin.get_form_classQ   s    ;;"t&M  ?????"zz%

x.: -- ))+11{{"*<>Bnn>U>UV 
 00{{KKr   c                   < \         SV `  4       p\        V R4      '       d   VP                  RV P                  /4       V# )r&   rV   instance)rD   r"   hasattrr-   rV   rE   s   & r   r"   ModelFormMixin.get_form_kwargsn   s7    (*4""MM:t{{34r   c                    V P                   '       d3   V P                   P                  ! R/ V P                  P                  B pV#  V P                  P	                  4       pV#   \
         d    \        R4      hi ; i)r2   z]No URL to redirect to. Either provide a url or define a get_absolute_url method on the Model.r!   )r4   formatrV   __dict__get_absolute_urlAttributeErrorr   )r   urls   & r   r6   ModelFormMixin.get_success_urlu   sy    ""))ADKK,@,@AC 
kk224 
 " *? s   A" "A9c                L   < VP                  4       V n        \        SV `  V4      # )z0If the form is valid, save the associated model.)saverV   rD   r;   )r   r:   rF   s   &&r   r;   ModelFormMixin.form_valid   s     iikw!$''r   rV   )rI   rJ   rK   rL   rM   rW   r   r"   r6   r;   rN   rO   rP   rQ   s   @@r   rT   rT   L   s'     DFL:( (r   rT   c                   6   a  ] tR t^t o RtR tR tR tRtV t	R# )ProcessFormViewz.Render a form on GET and processes it on POST.c                @    V P                  V P                  4       4      # )z=Handle GET requests: instantiate a blank version of the form.r>   r   r+   argsr/   s   &&*,r   getProcessFormView.get   s    &&t'<'<'>??r   c                    V P                  4       pVP                  4       '       d   V P                  V4      # V P                  V4      # )zp
Handle POST requests: instantiate a form instance with the passed
POST variables and then check if it's valid.
)r#   is_validr;   rA   r   r+   rq   r/   r:   s   &&*, r   postProcessFormView.post   s:    
 }}==????4(($$T**r   c                &    V P                   ! V/ VB # rH   )rw   )r   rq   r/   s   &*,r   putProcessFormView.put   s    yy$)&))r   r!   N)
rI   rJ   rK   rL   rM   rr   rw   rz   rN   rO   rR   s   @r   rn   rn      s     8@	+* *r   rn   c                       ] tR t^tRtRtR# )BaseFormViewz"A base view for displaying a form.r!   NrI   rJ   rK   rL   rM   rN   r!   r   r   r~   r~      s    ,r   r~   c                       ] tR t^tRtRtR# )FormViewz?A view for displaying a form and rendering a template response.r!   Nr   r!   r   r   r   r      s    Ir   r   c                   B   a a ] tR t^t oRtV 3R ltV 3R ltRtVtV ;t	# )BaseCreateViewzg
Base view for creating a new object instance.

This requires subclassing to provide a response mixin.
c                :   < R V n         \        SV `  ! V.VO5/ VB # rH   )rV   rD   rr   r   r+   rq   r/   rF   s   &&*,r   rr   BaseCreateView.get   s#    w{74T4V44r   c                :   < R V n         \        SV `  ! V.VO5/ VB # rH   )rV   rD   rw   r   s   &&*,r   rw   BaseCreateView.post   s#    w|G5d5f55r   rl   
rI   rJ   rK   rL   rM   rr   rw   rN   rO   rP   rQ   s   @@r   r   r           56 6r   r   c                       ] tR t^tRtRtRtR# )
CreateViewzI
View for creating a new object, with a response rendered by a template.
_formr!   NrI   rJ   rK   rL   rM   template_name_suffixrN   r!   r   r   r   r      s     #r   r   c                   B   a a ] tR t^t oRtV 3R ltV 3R ltRtVtV ;t	# )BaseUpdateViewzd
Base view for updating an existing object.

This requires subclassing to provide a response mixin.
c                V   < V P                  4       V n        \        SV `  ! V.VO5/ VB # rH   )
get_objectrV   rD   rr   r   s   &&*,r   rr   BaseUpdateView.get   s*    oo'w{74T4V44r   c                V   < V P                  4       V n        \        SV `  ! V.VO5/ VB # rH   )r   rV   rD   rw   r   s   &&*,r   rw   BaseUpdateView.post   s*    oo'w|G5d5f55r   rl   r   rQ   s   @@r   r   r      r   r   r   c                       ] tR t^tRtRtRtR# )
UpdateViewzDView for updating an object, with a response rendered by a template.r   r!   Nr   r!   r   r   r   r      s    N"r   r   c                   :   a  ] tR t^t o RtRtR tR tR tRt	V t
R# )DeletionMixinz&Provide the ability to delete objects.Nc                    V P                  4       V n        V P                  4       pV P                  P                  4        \	        V4      # )zV
Call the delete() method on the fetched object and then redirect to the
success URL.
)r   rV   r6   deleter   )r   r+   rq   r/   r4   s   &&*, r   r   DeletionMixin.delete   s;    
 oo'**,#K00r   c                .    V P                   ! V.VO5/ VB # rH   )r   rp   s   &&*,r   rw   DeletionMixin.post   s    {{74T4V44r   c                    V P                   '       d1   V P                   P                  ! R/ V P                  P                  B # \	        R 4      h)r3   r!   )r4   rc   rV   rd   r   r   s   &r   r6   DeletionMixin.get_success_url   s>    ##**BT[[-A-ABB&'VWWr   rl   )rI   rJ   rK   rL   rM   r4   r   rw   r6   rN   rO   r|   s   @r   r   r      s#     0K15X Xr   r   c                   4   a  ] tR t^t o Rt]tR tR tRt	V t
R# )BaseDeleteViewz[
Base view for deleting an object.

This requires subclassing to provide a response mixin.
c                    V P                  4       V n        V P                  4       pVP                  4       '       d   V P	                  V4      # V P                  V4      # rH   )r   rV   r#   ru   r;   rA   rv   s   &&*, r   rw   BaseDeleteView.post   sH    
 oo'}}==????4(($$T**r   c                l    V P                  4       pV P                  P                  4        \        V4      # rH   )r6   rV   r   r   )r   r:   r4   s   && r   r;   BaseDeleteView.form_valid  s+    **,#K00r   rl   N)rI   rJ   rK   rL   rM   r   r   rw   r;   rN   rO   r|   s   @r   r   r      s       J
+1 1r   r   c                       ] tR tRtRtRtRtR# )
DeleteViewi  zg
View for deleting an object retrieved with self.get_object(), with a
response rendered by a template.
_confirm_deleter!   Nr   r!   r   r   r   r     s    
 -r   r   N)django.core.exceptionsr   django.formsr   r   r[   django.httpr   django.views.generic.baser   r   r	   django.views.generic.detailr
   r   r   r   rT   rn   r~   r   r   r   r   r   r   r   r   r!   r   r   <module>r      s    7  . , O O <2 <2~:(Y 1 :(z*d *0-9o -J$l J6^_ 6 #2N #6^_ 6 #2N #X X41]I~ 16-2N -r   