| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/django/contrib/admin/__pycache__/ |
Upload File : |
�
�|�ed
� �6 � dd d d�d�Z dd d d d d�d�Zd d�d�Zd S )N)�permissions�descriptionc �0 ��� ��fd�}| �|S || � � S )az
Conveniently add attributes to an action function::
@admin.action(
permissions=['publish'],
description='Mark selected stories as published',
)
def make_published(self, request, queryset):
queryset.update(status='p')
This is equivalent to setting some attributes (with the original, longer
names) on the function directly::
def make_published(self, request, queryset):
queryset.update(status='p')
make_published.allowed_permissions = ['publish']
make_published.short_description = 'Mark selected stories as published'
c �, �� ���| _ ���| _ | S �N)�allowed_permissions�short_description)�funcr r s ���A/usr/lib/python3/dist-packages/django/contrib/admin/decorators.py� decoratorzaction.<locals>.decorator s$ �� ��"�'2�D�$��"�%0�D�"��� � )�functionr r r s `` r
�actionr s@ ��� �&� � � � � � �����y��"�"�"r )�boolean�orderingr �empty_valuec �8 ����� ����fd�}| �|S || � � S )a~
Conveniently add attributes to a display function::
@admin.display(
boolean=True,
ordering='-publish_date',
description='Is Published?',
)
def is_published(self, obj):
return obj.publish_date is not None
This is equivalent to setting some attributes (with the original, longer
names) on the function directly::
def is_published(self, obj):
return obj.publish_date is not None
is_published.boolean = True
is_published.admin_order_field = '-publish_date'
is_published.short_description = 'Is Published?'
c �v �� ����t d� � ����| _ ���| _ ���| _ ���| _ | S )NzWThe boolean and empty_value arguments to the @display decorator are mutually exclusive.)�
ValueErrorr �admin_order_fieldr �empty_value_display)r r r r r s ����r
r zdisplay.<locals>.decorator5 sc �� ���;�#:��4�� �
� ��"�D�L���%-�D�"��"�%0�D�"��"�'2�D�$��r r
)r r r r r r s ```` r
�displayr sL ����� �*� � � � � � � � �����y��"�"�"r )�sitec �>