+
    Tj                         ^ 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 R]
4      t ! R R	]]4      t ! R
 R]4      t ! R R]]4      tR# )    )ImproperlyConfigured)models)Http404)gettext)ContextMixinTemplateResponseMixinViewc                   n   a a ] tR t^t oRtRtRtRtRtRt	Rt
RtRR ltR tR tR	 tV 3R
 ltRtVtV ;t# )SingleObjectMixinzK
Provide the ability to retrieve a single object for further manipulation.
NslugpkFc                   Vf   V P                  4       pV P                  P                  V P                  4      pV P                  P                  V P                  4      pVe   VP                  VR7      pVe:   Ve   V P                  '       d$   V P                  4       pVP
                  ! R/ WC/B pVf+   Vf'   \        RV P                  P                  ,          4      h VP                  4       pV#   TP                  P                   d=    \        \        R4      RTP                  P                  P                   /,          4      hi ; i)z
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.
)r   zXGeneric detail view %s must be called with either an object pk or a slug in the URLconf.z,No %(verbose_name)s found matching the queryverbose_name )get_querysetkwargsgetpk_url_kwargslug_url_kwargfilterquery_pk_and_slugget_slug_fieldAttributeError	__class____name__modelDoesNotExistr   __metar   )selfquerysetr   r   
slug_fieldobjs   &&    P/var/www/idalgo/venv/lib/python3.14/site-packages/django/views/generic/detail.py
get_objectSingleObjectMixin.get_object   s.    ((*H [[__T../{{t223>"-H t/E/E/E,,.J<*);<H :$, /151H1HI 
	,,.C 
 ~~** 	@A!8>>#7#7#D#DEF 	s   !C3 3AE
c                   V P                   f_   V P                  '       d%   V P                  P                  P                  4       # \	        RRV P
                  P                  /,          4      hV P                   P                  4       # )z
Return the `QuerySet` that will be used to look up the object.

This method is called by the default implementation of get_object() and
may not be called if get_object() is overridden.
zj%(cls)s is missing a QuerySet. Define %(cls)s.model, %(cls)s.queryset, or override %(cls)s.get_queryset().cls)r!   r   _default_managerallr   r   r   r    s   &r$   r   SingleObjectMixin.get_queryset=   so     == zzzzz226688*.168O8O0PQ 
 }}  ""    c                    V P                   # )z;Get the name of a slug field to be used to look up by slug.)r"   r+   s   &r$   r    SingleObjectMixin.get_slug_fieldO   s    r-   c                    V P                   '       d   V P                   # \        V\        P                  4      '       d   VP                  P
                  # R# )z#Get the name to use for the object.N)context_object_name
isinstancer   Modelr   
model_name)r    r#   s   &&r$   get_context_object_name)SingleObjectMixin.get_context_object_nameS   s>    ###+++V\\**99'''r-   c                   < / pV P                   '       dA   V P                   VR&   V P                  V P                   4      pV'       d   V P                   W#&   VP                  V4       \        SV `  ! R/ VB # )z/Insert the single object into the context dict.objectr   )r8   r5   updatesuperget_context_data)r    r   contextr1   r   s   &,  r$   r;   "SingleObjectMixin.get_context_data\   sb    ;;; $GH"&">">t{{"K"/3{{,vw'2'22r-   r   )N)r   
__module____qualname____firstlineno____doc__r   r!   r"   r1   r   r   r   r%   r   r   r5   r;   __static_attributes____classdictcell____classcell__r   __classdict__s   @@r$   r   r      sP      EHJNL&P#$	3 	3r-   r   c                   *   a  ] tR t^ht o RtR tRtV tR# )BaseDetailViewzc
Base view for displaying a single object.

This requires subclassing to provide a response mixin.
c                    V P                  4       V n        V P                  V P                  R 7      pV P                  V4      # )r8   )r%   r8   r;   render_to_response)r    requestargsr   r<   s   &&*, r$   r   BaseDetailView.geto   s8    oo'''t{{';&&w//r-   rJ   N)r   r>   r?   r@   rA   r   rB   rC   )rF   s   @r$   rH   rH   h   s     0 0r-   rH   c                   :   a a ] tR t^ut oRtRtV 3R ltRtVtV ;t	# )!SingleObjectTemplateResponseMixinN_detailc                `  <  \         SV `  4       pV#   \         Ed    . pT P                  '       dN   T P                  '       d<   \        T P                  T P                  R4      pT'       d   TP                  ^ T4       \        T P                  \        P                  4      '       dR   T P                  P                  pTP                  TP                  : RTP                  : T P                  : R24       M\        T RR4      e   \        T P                   \        P                  4      '       dc   TP                  T P                   P                  P                  : RT P                   P                  P                  : T P                  : R24       T'       g   \        R4      h T# i ; i)a  
Return a list of template names to be used for the request. May not be
called if render_to_response() is overridden. Return a list containing
``template_name``, if set on the value. Otherwise, return a list
containing:

* the contents of the ``template_name_field`` field on the
  object instance that the view is operating upon (if available)
* ``<app_label>/<model_name><template_name_suffix>.html``
N/z.htmlr   zSingleObjectTemplateResponseMixin requires a definition of 'template_name', 'template_name_field', or 'model'; or an implementation of 'get_template_names()'.)r:   get_template_namesr   r8   template_name_fieldgetattrinsertr2   r   r3   r   append	app_labelr4   template_name_suffix
issubclassr   )r    namesnameobject_metar   s   &   r$   rT   4SingleObjectTemplateResponseMixin.get_template_namesy   s\   /	G.0E` _ $ -	 E
 {{{t777t{{D,D,DdKLLD)
 $++v||44"kk// $--#..11	 w-9j

FLL? ?  

((22

((3311	 *F   _-	s!    F-F-EF-F-,F-r   )
r   r>   r?   r@   rU   rZ   rT   rB   rC   rD   rE   s   @@r$   rP   rP   u   s     $< <r-   rP   c                       ] tR t^tRtRtR# )
DetailViewz
Render a "detail" view of an object.

By default this is a model instance looked up from `self.queryset`, but the
view will support display of *any* object by overriding
`self.get_object()`.
r   N)r   r>   r?   r@   rA   rB   r   r-   r$   ra   ra      s    r-   ra   N)django.core.exceptionsr   	django.dbr   django.httpr   django.utils.translationr   r   django.views.generic.baser   r   r	   r   rH   rP   ra   r   r-   r$   <module>rg      sT    7   1 O O]3 ]3@
0& 
0@(= @F2N r-   