PK! django_admin_display/__init__.pyfrom typing import Callable, Optional, TypeVar import django ReturnType = TypeVar('ReturnType') FuncType = Callable[..., ReturnType] Func = TypeVar('Func', bound=FuncType) def admin_display( admin_order_field: 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]: """ Extend method with special attributes for use by the django admin. """ def wrapper(func: Func) -> Func: if admin_order_field is not None: setattr(func, 'admin_order_field', admin_order_field) 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.1.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.1.0.dist-info/WHEEL A н#Z;/"d&F[xzw@Zpy3Fv]\fi4WZ^EgM_-]#0(q7PK!HE>:V(-django_admin_display-1.1.0.dist-info/METADATAXmo7ghWus Nq+F QĆK\)Oz!z_ p`Kp晙gZx^qeq}k1aO\/MΫZ꼒Q˶rgYEv5݄ȺQr!c~%X3 hu!θV[共A$gA=b5k:Me7-+7үyQz,\Q5,v:_)֯K%>Da7V蟅J+TƱ Ž6ƾwt`FV€i #ϡZ2M-g7ֱɄ9>}D!?:"d ^w_j/M.J ] MAd0$Kv4֬u|%Kd7{qj%:[5mx[[D!Jߞ>VN@>eW;ޚFpc~í8[n)wz^Ue8'Q7SS2q́yqyEQW'q=Z}vU+-2A>5(/>xlWf~"tݠ?[­P+7]#{/z9TsTvzkR.thkCiBJ[Dz O vYϫ_y yr=}ӭ܃0{Xz@E;˂O]̆lS(eYޗy(<F8{~pL\δlQUްrIoZK̦גv3+x: vhD2/(J'*$ u(%W{\WtEuH6 䑦}p4i .W%@vM4]1"V tҦAH@%xi=qb,c\ΛZ,N_~EW!9rϕ(žl&wpBoW+鶘"y5b2O%&[l$aA3*©C&D t)3bƢO4YdǙ^-jRXwc4G̍QoaNcxX/o2/C"1B8׷VS%['2K7c#ˑpZqJ޳oÝ zdEY C(/0Cl(e6ƁpiFYH 6K?t ؕAM.pSI>X0taNŐ4}"R$ \?՘brQʪ8JpvNIMGyMOt= ACsQ ȏRHMh̢H=]uGrۄš:4j;xQП`}FGö1|q:9*0m!Fwl" PȄ͞!<L}7C/D hE6, ]!?>;YZh[ߗ0vF0KEhAE= [x*&BHuT޿p0BKiufZv{ uoO0.zSؙۊ@$NLyC ^ij:͢\+4$dho !1%NxcJ̄ Vz:ےE/:G؝(}>oEЌM"p!-!˶l-@{/HBgm~RP3A=t$s$^bV,{O7{Ws51W% ѿbzr#(=PK!H|3#+django_admin_display-1.1.0.dist-info/RECORDͻ0@o CQD h+06t[P( ;a%G.cL(aEO()p;7iyX3fRdf^~"?>%΢ƜȋБuA#⿻j$7+M>WJ`M>O =KnlmDE!HڜJoP-Mhz3 KȂKvԥ`LLj[F#ٶ*VZي=&0.4 ρ4A0PK! django_admin_display/__init__.pyPK!,Ndjango_admin_display-1.1.0.dist-info/LICENSEPK!HڽTU* django_admin_display-1.1.0.dist-info/WHEELPK!HE>:V(-. django_admin_display-1.1.0.dist-info/METADATAPK!H|3#+django_admin_display-1.1.0.dist-info/RECORDPK