ó
O'^c           @   sl  d  d l  Z  d   Z d   Z y d  d l m Z Wn! e k
 rU d  d l m Z n Xy d  d l Z Wn! e k
 r d  d l	 m Z n Xy d  d l
 m Z Wn! e k
 rÁ d  d l
 m Z n Xy d  d	 l m Z e j Z Wn! e k
 rd  d
 l m Z n Xd   Z d   Z d   Z y d  d l m Z d   Z Wn* e k
 rgd  d l m Z d   Z n Xd S(   i˙˙˙˙Nc          C   s<   y d d l  m }  Wn! t k
 r7 d d l m }  n X|  S(   Ni˙˙˙˙(   t   GenericForeignKey(   t"   django.contrib.contenttypes.fieldsR    t   ImportErrort#   django.contrib.contenttypes.generic(   R    (    (    s4   /tmp/pip-unpacked-wheel-K50F1D/autofixture/compat.pyt   get_GenericForeignKey   s
    c          C   s<   y d d l  m }  Wn! t k
 r7 d d l m }  n X|  S(   Ni˙˙˙˙(   t   GenericRelation(   R   R   R   R   (   R   (    (    s4   /tmp/pip-unpacked-wheel-K50F1D/autofixture/compat.pyt   get_GenericRelation   s
    (   t   OrderedDict(   t
   SortedDict(   t	   importlib(   t   atomic(   t   commit_on_success(   t   apps(   t	   get_modelc         C   s7   t  j d k  r# |  j j |  d S|  j j |  Sd  S(   Ni   i   i    (   i   i   (   t   djangot   VERSIONt   _metat   get_field_by_namet	   get_field(   t   modelt
   field_name(    (    s4   /tmp/pip-unpacked-wheel-K50F1D/autofixture/compat.pyR   /   s    c         C   s!   t  j d k  r |  j S|  j Sd  S(   Ni   i	   (   i   i	   (   R   R   t   relt   remote_field(   t   field(    (    s4   /tmp/pip-unpacked-wheel-K50F1D/autofixture/compat.pyt   get_remote_field6   s    c         C   s'   t  j d k  r |  j j S|  j j Sd  S(   Ni   i	   (   i   i	   (   R   R   R   t   toR   R   (   R   (    (    s4   /tmp/pip-unpacked-wheel-K50F1D/autofixture/compat.pyt   get_remote_field_to=   s    
(   t	   signaturec         C   s   t  t |   j j    S(   N(   t   listR   t
   parameterst   keys(   t   callable(    (    s4   /tmp/pip-unpacked-wheel-K50F1D/autofixture/compat.pyt   getargnamesG   s    (   t
   getargspecc         C   s   t  |   j S(   N(   R!   t   args(   R   (    (    s4   /tmp/pip-unpacked-wheel-K50F1D/autofixture/compat.pyR    M   s    (   R   R   R   t   collectionsR   R   t   django.utils.datastructuresR   R	   t   django.utilst   django.db.transactionR
   R   t   django.appsR   R   t   django.db.modelsR   R   R   t   inspectR   R    R!   (    (    (    s4   /tmp/pip-unpacked-wheel-K50F1D/autofixture/compat.pyt   <module>   s8   						