PK!iOع django_admin_display/__init__.pyfrom typing import Callable, Optional, TypeVar import django Args = TypeVar('Args') ReturnType = TypeVar('ReturnType') Func = Callable[[Args], ReturnType] def admin_display( admin_order_value: Optional[str] = None, allow_tags: Optional[bool] = None, # deprecated in django >= 2.0 boolean: Optional[bool] = None, empty_value_display: Optional[str] = None, short_description: Optional[str] = None, ) -> Callable[[Func], Func]: """ """ def wrapper(func: Func) -> Func: if admin_order_value is not None: setattr(func, 'admin_order_value', admin_order_value) if allow_tags is not None: if django.VERSION[:2] > (1, 11): raise AttributeError( "`allow_tags` is not supported by django > 2.0", ) setattr(func, 'allow_tags', allow_tags) if boolean is not None: setattr(func, 'boolean', boolean) if empty_value_display is not None: setattr(func, 'empty_value_display', empty_value_display) if short_description is not None: setattr(func, 'short_description', short_description) return func return wrapper PK!,django_admin_display-1.0.0.dist-info/LICENSECopyright (c) Alexander Frenzel. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of Alexander Frenzel nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PK!HڽTU*django_admin_display-1.0.0.dist-info/WHEEL A н#Z;/"d&F[xzw@Zpy3Fv]\fi4WZ^EgM_-]#0(q7PK!HV#F-django_admin_display-1.0.0.dist-info/METADATAT]oJ}_1/T6+Y*6E ދPƞK׻~85*P̜93g.{ rxG`w**)3w,}>g4v9,EcX tkBp {+Vum1CgY%|Vi ] ك"9JN%l|ms\hEhIB֢ˍ7.&d#.ܑ3u(}۹$/EMs9NӉjժw%/}5q}gXGt\NGꦄy({w$&z|Z~1VTm͓O½P,;b)k&Wg+*TkƐGƧȟD3FѰk'C#+m; ]QXs.B "zVR6[ KNu\!\u4Sf{Sbaѳ'ף=MZ,]*tf:#kC8 Bzx[BV{H@TQdESiKC,7RuHoe3w7];a~,խ3wNƻW1lwqdH,͆/uyG?]v1(k6!xM%(`#+*TRkjZc?0E5QZXK@la{oHM1߽\_u+Pz{B\.CWRF7E'6ҰSZK7㝒I~TKLwmGTJfCʓ{[*SPK!H޵+django_admin_display-1.0.0.dist-info/RECORDϹ@oӒ` qC@FM@Pگ_ :W{8J pBڊFcHAELojm7ο #֯RS;* ,{պ%ar}k>ƀB@.FNnbyvG10W!ΡxY>C M 7wj ~40m;H9zgel ۀ#8p,7@q:z;4[Jn8 ܧ7<9PK!iOع django_admin_display/__init__.pyPK!,django_admin_display-1.0.0.dist-info/LICENSEPK!HڽTU*; django_admin_display-1.0.0.dist-info/WHEELPK!HV#F- django_admin_display-1.0.0.dist-info/METADATAPK!H޵+hdjango_admin_display-1.0.0.dist-info/RECORDPK