PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB`  ]c@sddlmZddlZddlZddlZddlmZddlmZddl m Z ddl m Z ddl mZmZmZmZmZmZddlmZmZmZmZmZmZmZdd lmZdd lmZm Z dd l!m"Z"m#Z#m$Z$m%Z%dd l&m'Z'dd l(m)Z)ddl*m+Z+ddl,m-Z-m.Z.m/Z/m0Z0m1Z1ddl2m3Z3ddl4m5Z5ddl6m7Z7ddl8m9Z9m:Z:m;Z;ddl<m=Z=ddl>m?Z?ddl@mAZAmBZBddlCmDZEddlFmGZGe;deHfdYZIeIZJeKdZLdeMfdYZNdeHfdYZOd e5jPeNfd!YZQeKd"ZRd#ZSd$ZTd%ZUeVeU_Wd&ZXdS('i(tunicode_literalsN(tchain(tapps(tsettings(tchecks(tNON_FIELD_ERRORStFieldDoesNotExistt FieldErrortMultipleObjectsReturnedtObjectDoesNotExisttValidationError(tDEFAULT_DB_ALIAStDJANGO_VERSION_PICKLE_KEYt DatabaseErrort connectiont connectionstroutert transaction(t LOOKUP_SEP(tCASCADEt Collector(tForeignObjectRelt OneToOneFieldtlazy_related_operationtresolve_relation(tManager(tOptions(tQ(tclass_preparedt post_initt post_savetpre_inittpre_save(tmake_model_tuple(tsix(tRemovedInDjango20Warning(t force_strt force_texttpython_2_unicode_compatible(tcurry(tzip(tcapfirstt get_text_list(t ugettext_lazy(t get_versiontDeferredcBseZdZdZRS(cCs tdS(Nu(tstr(tself((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyt__repr__-scCs tdS(Nu(R.(R/((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyt__str__0s(t__name__t __module__R0R1(((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyR-+s cs[i|d6}dk rKfd}d}||d<||dsR6uMultipleObjectsReturnedcss4|]*}t|dr|jj r|jVqdS(u_metaN(RARBRCR(RERF((s9/usr/lib/python2.7/site-packages/django/db/models/base.pys suorderingu get_latest_byu'%s cannot proxy the swapped model '%s'.cSsh|]}|jqS((R7(REtf((s9/usr/lib/python2.7/site-packages/django/db/models/base.pys s uOAbstract base class containing model fields not permitted for proxy model '%s'.uAProxy model '%s' has more than one non-abstract model base class.u6Proxy model '%s' has no non-abstract model base class.uRLocal field %r in class %r clashes with field of the same name from base class %r.u%s_ptrt on_deleteR7t auto_createdt parent_linkutAuto-generated field '%s' in class %r for parent_link to base class %r clashes with declared field of the same name.(>tsuperR@t__new__t isinstancetpopR:tgetattrtFalseRtget_containing_app_configt RuntimeErrortlabelt add_to_classRR?R.ttupleR RRCRAtorderingRBt get_latest_bytproxytswappedt TypeErrortitemsRt local_fieldstlocal_many_to_manytprivate_fieldstfieldstconcrete_modelt setup_proxytreversedRRt remote_fieldtmodelR!tsettmrot__dict__tkeysR7RR2taddt model_nameRtTrueR<tcopytdeepcopyt one_to_onetupdatetindexestMetat_preparetregister_modelt app_label($tclsR7tbasestattrst super_newtbR<R=t new_attrst classcellt new_classt attr_metaRCtmetat base_metaRtt app_configtis_proxytobj_nametobjt new_fieldst field_namestbasetklstparentt parent_linkstfieldtrelatedtinherited_attributest parent_fieldstbase_keyt attr_namet base_parentst new_fieldRJtidx((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRLSs4(            /                    $.   cCsFtj| r2t|dr2|j||nt|||dS(Nucontribute_to_class(tinspecttisclassRAtcontribute_to_classtsetattr(RuR7tvalue((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRTBscCs|j}|j||jrt|jdt|_t|jdt|_|jj r|j}|j j }t t ||qn|j d krd|jdjd|jDf|_ ntjj|j}|rt|d|n|j s|jr\td|jDr7td|jnt}t|_|jd|nx-|jjD]}|jsi|j |qiqiWt!j"d |d S( uJ Creates some methods once self._meta has been populated. tis_nextu%s(%s)u, css|]}|jVqdS(N(R7(RERG((s9/usr/lib/python2.7/site-packages/django/db/models/base.pys `suget_absolute_urlcss|]}|jdkVqdS(uobjectsN(R7(RERG((s9/usr/lib/python2.7/site-packages/django/db/models/base.pys gsuOModel %s must specify a custom Manager, because it has a field named 'objects'.uobjectstsenderN(#RBRrtorder_with_respect_toR't_get_next_or_previous_in_orderRktget_next_in_orderRPtget_previous_in_orderRcRdRtmake_foreign_order_accessorst__doc__R:R2tjoinR_RtABSOLUTE_URL_OVERRIDEStgett label_lowerRtmanagerst _requires_legacy_default_managertanyt ValueErrorRRIRTRpR7tset_name_with_modelRtsend(Rutoptstwrttremotetget_absolute_url_overridetmanagertindex((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRrIs4      /   cCsH|j}|jrtS|j}x"|jD]}|j}||ks\|jjs\|jjr)||jk r|j rt j dj d|j d|jd|jd|jjjd|jd|jjjtd|j|_ |jnPq)q)W|js@t j d j d|j d|jd|jd|jjjtdntSdS( NuManagers from concrete parents will soon qualify as default managers if they appear before any other managers in the MRO. As a result, '{legacy_default_manager}' declared on '{legacy_default_manager_model}' will no longer be the default manager for '{model}' in favor of '{future_default_manager}' declared on '{future_default_manager_model}'. You can redeclare '{legacy_default_manager}' on '{cls}' to keep things the way they are or you can switch to the new behavior right away by setting `Meta.manager_inheritance_from_future` to `True`.RuRdtlegacy_default_managertlegacy_default_manager_modeltfuture_default_managertfuture_default_manager_modeliuManagers from concrete parents will soon qualify as default managers. As a result, the 'objects' manager won't be created (or recreated) automatically anymore on '{model}' and '{future_default_manager}' declared on '{future_default_manager_model}' will be promoted to default manager. You can declare explicitly `objects = models.Manager()` on '{cls}' to keep things the way they are or you can switch to the new behavior right away by setting `Meta.manager_inheritance_from_future` to `True`.(RBtmanager_inheritance_from_futureRPtdefault_managerRt_originating_modelRXRCt_default_managertdefault_manager_nametwarningstwarntformatR2RSR7R#t _expire_cacheRIRk(RuRRRtoriginating_model((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRys<                 cCs |jjS(N(RBt base_manager(Ru((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyt _base_managerscCs |jjS(N(RBR(Ru((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRs( R2R3RRLRTRrRtpropertyRR(((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyR@Os  0 It ModelStatecBseZdZddZRS(u, A class for storing instance state cCs||_t|_dS(N(tdbRktadding(R/R((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyt__init__s N(R2R3RR:R(((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRstModelcBseZdZedZdZdZdZdZdZ dZ dZ d1d Z d Zee eZd Zd1d1d Zd Zeed1d1dZee_eeed1d1dZee_dZed1eed1d1dZdZdZd1edZee_dZdZdZ dZ!dZ"d1dZ#d1dZ$dZ%dZ&dZ'dZ(d1ed Z)d1d!Z*ed"Z+ed#Z,ed$Z-ed%Z.ed&Z/ed'Z0ed(Z1ed)Z2ed*Z3ed+Z4ed,Z5ed-Z6ed.Z7ed/Z8ed0Z9RS(2cOs|j}|j}t}t}tjd|d|d|t|_t|t|j krpt dn|st |j }xt ||D]1\}} ||krqn||| j |qWngt |j}xUt ||D]D\}} ||kr qn||| j ||j| jdqWxi|D]a} t} | j |krk| jdkrkq;n|rCt| jtr y|j| j} t} WnGtk ry|j| j }Wqtk r| j}qXq@X| dkr@| jr@d}q@qOy|j| j }WqOtk r?| j}qOXn | j}| rz| |k r||| j| qq;||k r;||| j |q;q;W|rV|j} x~t|D]p} yP| | ks|j| r|| |k r||| || n|| =nWqttfk r+qXqW|rVt dt!|dqVnt"t#|j$t%jd|d|dS(NRR5tkwargsu'Number of args exceeds number of fieldsu5'%s' is an invalid keyword argument for this functionitinstance(&t __class__RBRtDEFERREDRRRt_statetlentconcrete_fieldst IndexErrortiterR(tattnameR_RNR7R:RPtcolumnRMRcRRktKeyErrort get_defaulttnullt_property_namesRUt get_fieldtAttributeErrorRRZtlistRKRRR(R/R5RRuRt_setattrt _DEFERREDt fields_itertvalRtis_related_objecttrel_objtproperty_namestprop((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRsx                cCst|t|jjkrqt|}|jg|jjD]'}|j|krb|jnt^qA}n||}t|j _ ||j _ |S(N( RRBRRtreverseRRNRRPRRR(RuRRtvaluesRGtnew((s9/usr/lib/python2.7/site-packages/django/db/models/base.pytfrom_dbAs  =   cCsMytj|}Wnttfk r2d}nXtd|jj|fS(Nu[Bad Unicode data]u<%s: %s>(R"t text_typetUnicodeEncodeErrortUnicodeDecodeErrorR$RR2(R/tu((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyR0Ls  cCs?tjr+t|dr+t|jdStd|jjS(Nu __unicode__uutf-8u %s object(R"tPY2RAR%tencodeR.RR2(R/((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyR1SscCsat|tstS|jj|jjkr/tS|j}|dkrQ||kS||jkS(N(RMRRPRBR`t _get_pk_valR:(R/tothertmy_pk((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyt__eq__Xs   cCs|j| S(N(R(R/R((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyt__ne__bscCs1|jdkr!tdnt|jS(Nu8Model instances without primary key value are unhashable(RR:RZthash(R/((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyt__hash__escCs>|j}t|t<|jj|jjf}t|f|fS(N(RgR,R RBRtt object_nametmodel_unpickle(R/tdatatclass_id((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyR8js  cCsd}|jt}|rFt}||krLd||f}qLnd}|rktj|tddn|jj|dS(NuQPickled model instance's Django version %s does not match the current version %s.u9Pickled model instance's Django version is not specified.t stackleveli( R:RR R,RRtRuntimeWarningRgRo(R/tstatetmsgtpickled_versiontcurrent_version((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyR9ps  cCs%|s|j}nt||jjS(N(RBROtpkR(R/R~((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRs cCst||jjj|S(N(RRBRR(R/R((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyt _set_pk_valscsfdjjDS(uV Returns a set containing names of deferred fields for this instance. cs+h|]!}|jjkr|jqS((RRg(RERG(R/(s9/usr/lib/python2.7/site-packages/django/db/models/base.pys s (RBR(R/((R/s9/usr/lib/python2.7/site-packages/django/db/models/base.pytget_deferred_fieldssc Cs.|dk rNt|dkr"dStd|DrNtdtqNn|dk r`|n |jj}|jjj |j d|j }|j }|dk rt |}|j|}nI|rg|jjD]}|j|kr|j^q}|j|}n|j}|j }x|jjD]} | j|krOq4nt|| jt|| j| jr4| j|jkr4t|| j} t|| j} | dkrdnt| | jj} | | ks| dkr| dkr|j| j=qq4q4W|jj|j_dS(uV Reloads field values from the database. By default, the reloading happens from the database this instance was loaded from, or by the read router if this instance wasn't loaded from any database. The using parameter will override the default. Fields can be used to specify which fields to reload. The fields should be an iterable of field attnames. If fields is None, then all non-deferred fields are reloaded. When accessing deferred fields of an instance, the deferred loading of the field will call this method. iNcss|]}t|kVqdS(N(R(RERG((s9/usr/lib/python2.7/site-packages/django/db/models/base.pys suRFound "%s" in fields argument. Relations and transforms are not allowed in fields.R(R:RRRRRRRRtusingtfilterRRRtonlyRBRRRRROt is_relationtget_cache_nameRgt target_field( R/RR_Rtdb_instance_qstdeferred_fieldsRGt db_instancetnon_loaded_fieldsRt rel_instancet local_valt related_val((s9/usr/lib/python2.7/site-packages/django/db/models/base.pytrefresh_from_dbs< $     '$cCsDy|jj|}Wntk r3t||SXt||jS(u Returns the value of the field name for this instance. If the field is a foreign key, returns the id value, instead of the object. If there's no Field object with this name on the model, the model attribute's value is returned directly. Used to serialize a field's value (in the serializer, or form output, for example). Normally, you would just access the attribute directly and not use this method. (RBRRROR(R/t field_nameR((s9/usr/lib/python2.7/site-packages/django/db/models/base.pytserializable_values  c Cs}x|jjD]}|jr yt||jWntk rIq nXt||jd}|r|jdkr|j j st ||j jnt d|jqq q W|pt j|jd|}|r|s|rt dn|j}|dk rt|dkr#dSt|}t}xU|jjD]G}|jsE|j|j|j|jkr|j|jqqEqEW|j|} | rWt ddj| qWn| rW|rW||jjkrWt}xA|jjD]3}|j rt|d r|j|jqqW|j|} | rWt| }qWn|jd |d |d |d |dS( ub Saves the current instance. Override this in a subclass if you want to control the saving process. The 'force_insert' and 'force_update' parameters can be used to insist that the "save" must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set. uJsave() prohibited to prevent data loss due to unsaved related object '%s'.Ru6Cannot force both insert and updating in model saving.iNuEThe following fields do not exist in this model or are m2m fields: %su, uthroughRt force_insertt force_updatet update_fields(RBRRRORRR7R:RRctmultipletdelattrRRt db_for_writeRRRt frozensetReR_t primary_keyRiRt differenceRRRRAt save_base( R/RRRRRRRRtnon_model_fieldst loaded_fields((s9/usr/lib/python2.7/site-packages/django/db/models/base.pytsavesR          c Csp|ptj|jd|}|o-|p-| s7t|dks[t|dks[t|j}}|jjr|jj}n|j}|j st j d|d|d|d|d|nt j d|dt?|s|j|||n|j||||||} WdQX||j_t|j_|j sltj d|d|d | d|d|d|ndS( uw Handles the parts of saving which should be done only once per save, yet need to be done in raw saves, too. This includes some sanity checks and signal sending. The 'raw' argument is telling save_base not to save any parent models and not to do any changes to the values before save. This is used by fixture loading. RiRtrawRRt savepointNtcreated(RRRtAssertionErrorR:RRBRXR`RIR RRtatomicRPt _save_parentst _save_tableRRRR( R/RRRRRRutoriginR~tupdated((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyR+s* $      $    c Cs|j}x |jjD]\}}|rt||jjjdkrt||jdk rt||jjjt||jn|jd|d|d||j d|d|d||rt||j|j |j|j }t ||rt ||qqqWdS(uF Saves all the parents of cls using values from self. RuRRN(RBR<R[RORRR:RR R!RRRAR(R/RuRRR~RRt cache_name((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyR Us $( c Cs|j}g|jD]}|js|^q} |rng| D]*}|j|ks_|j|kr;|^q;} n|j|} | dkr|jj|} t ||jj| n| dk } | r|s|rt dnt } | r| r|j j |} g| D]9}|d|r2t||jn|j|t f^q}|pV|}|j| || |||} |r| rtdn|r| rtdqn| s|jr|j}|j|}|j j |j|j}||_n|j}| s@g|D]}||jk r|^q}n|joM| }|j|j ||||}|rt ||jj|qn| S(ut Does the heavy-lifting involved in saving. Updates or inserts the data for a single table. u5Cannot force an update in save() with no primary key.u&Forced update did not affect any rows.u0Save with update_fields did not affect any rows.N(RBtlocal_concrete_fieldsRR7RRR:Rtget_pk_value_on_saveRRRPRRROR t _do_updateR Rtget_filter_kwargs_for_objectRtcountt_ordert auto_fieldt _do_insert(R/RRuRRRRR~RGtnon_pkstpk_valtpk_setR#tbase_qsRt forced_updateRt filter_argst order_valueR_t update_pktresult((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyR!msL % -   C      !  +cCs|jd|}|s.|dk p-|jS|jjrs| rs|jrl|j|dkpk|jStSn|j|dkS(u This method will try to update the model. If the model was updated (in the sense that an update query was done and a matching row was found from the DB) the method will return True. RiN(RR:texistsRBtselect_on_savet_updateRP(R/R0RR.RRR1tfiltered((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyR's c Cs(|j|gd|d|d|d|S(ux Do an INSERT. If update_pk is defined then this method should return the new pk for the model. R_t return_idRR(t_insert(R/RRR_R4R((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyR,scCs|ptj|jd|}|jdk sUtd|jj|jjj ft d|}|j |gd||j S(NRuC%s object can't be deleted because its %s attribute is set to None.Rt keep_parents( RRRRR:RRBRRRRtcollecttdelete(R/RR<t collector((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyR>scCs7t||j}tt|jj||dtS(Nt strings_only(RORR%tdictt flatchoicesRRk(R/RR((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyt_get_FIELD_displaysc Ks&|jstdn|r$dnd}|r6dnd}tt||j}ti|d|j|f6}|ti||j6|jd|6B}|jjj |j j j |j |j d||jfd |}y |d SWn-tk r!|jd |jjjnXdS( Nu8get_next/get_previous cannot be used on unsaved objects.ugtultuu-u%s__%supk__%su%s%su%spkiu!%s matching query does not exist.(RRR%RORRR7RRRRRRtorder_byRRDRBR( R/RRRtoptordertparamtqtqs((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyt_get_next_or_previous_by_FIELDs  (-  cCsd|}t||s|r%dnd}|r7dnd}|jj}|j|}|jjj|ji|jjjdji|j|jjj 6d|6j |d j }t |||nt ||S(Nu__%s_order_cacheugtultu_orderu-_orderu _order__%si(RARBRR(RRRRRR7RDRRRO(R/Rt cachenameRERFt order_fieldR2R((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRs  $cCs;|jdkr"td|nt||jjjS(Nu9Unsaved model instance %r cannot be used in an ORM query.(RR:RRORctget_related_fieldR(R/R((s9/usr/lib/python2.7/site-packages/django/db/models/base.pytprepare_database_savescCsdS(uI Hook for doing any extra model-wide validation after clean() has been called on every field by self.clean_fields. Any ValidationError raised by this method will not be associated with a particular field; it will have a special-case association with the field defined by NON_FIELD_ERRORS. N((R/((s9/usr/lib/python2.7/site-packages/django/db/models/base.pytcleanscCs|jd|\}}|j|}|j|}x3|jD]%\}}|j|gj|qCW|rt|ndS(un Checks unique constraints on the model and raises ``ValidationError`` if any failed. texcludeN(t_get_unique_checkst_perform_unique_checkst_perform_date_checksR[t setdefaulttextendR (R/RPt unique_checkst date_checksterrorst date_errorstktv((s9/usr/lib/python2.7/site-packages/django/db/models/base.pytvalidate_uniquesc Cs<|dkrg}ng}|j|jjfg}x?|jjD].}|jjrC|j||jjfqCqCWx_|D]W\}}xH|D]@}x7|D]}||krPqqW|j|t|fqWq|Wg} |j|jjfg} x0|jjD]}| j||jjfqWx| D]\}} x| D]} | j}||krcqBn| j r|j||ffn| j r| j |kr| j|d|| j fn| j r| j |kr| j|d|| j fn| j rB| j |krB| j|d|| j fqBqBWq/W|| fS(u Gather a list of checks to perform. Since validate_unique could be called from a ModelForm, some fields may have been excluded; we can't perform a unique check on a model that is missing fields involved in that check. Fields that did not validate should also be excluded, but they need to be passed in via the exclude argument. udateuyearumonthN( R:RRBtunique_togethertget_parent_listtappendRUR\R7tuniquetunique_for_datetunique_for_yeartunique_for_month( R/RPRVtunique_togetherst parent_classt model_classR]tcheckR7RWtfields_with_classR_RG((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRQs>       !    'c Cs{i}xn|D]f\}}i}x|D]}|jj|}t||j}|dks&|dkrztjjrzq&n|jr|j j rq&n||t |_scss*|] }t|jjtr|VqdS(N(RMRctthroughR@(RERG((s9/usr/lib/python2.7/site-packages/django/db/models/base.pys bsuMThe model has two many-to-many relations through the intermediate model '%s'.RRu models.E003( RBR]RcRdRR_RRRS(RuRXtseen_intermediary_signaturesR_RGt signature((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRTs     csotfdjjD}|rg|dj rgjjjdkrgtjddddgSgSdS( u' Check if `id` field is a primary key. c3s6|],}|jdkr|jjkr|VqdS(uidN(R7RBR(RERG(Ru(s9/usr/lib/python2.7/site-packages/django/db/models/base.pys vsiuiduP'id' can only be used as a field name if the field also sets 'primary_key=True'.RRu models.E004N(RRBR\RRR7RR(RuR_((Rus9/usr/lib/python2.7/site-packages/django/db/models/base.pyRss") cCsg}i}x|jjD]}x|jjD]}|j|jp\|j|jp\d}|r|jtj d|j|j j|j|j jfd|ddn|||j<|||jField '%s' has column name '%s' that is used by another field.thintu$Specify a 'db_column' for the field.RRu models.E007(RBR\tget_attname_columnR_RRR7(Rutused_column_namesRXRGR}t column_name((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRs cCsg}|j}|jds-|jdrV|jtjd|d|ddn5t|kr|jtjd|d|ddn|S(Nu_ugThe model name '%s' cannot start or end with an underscore as it collides with the query lookup syntax.RRu models.E023ubThe model name '%s' cannot contain double underscores as it collides with the query lookup syntax.u models.E024(R2t startswithtendswithR_RRR(RuRXRj((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRs"    cCst|jjttfs7tjdd|ddgStd|jjDrotjdd|ddgSg}x-|jjD]}|j|j |dqW|Sd S( u- Check the value of "index_together" option. u)'index_together' must be a list or tuple.RRu models.E008css%|]}t|ttf VqdS(N(RMRUR(RER_((s9/usr/lib/python2.7/site-packages/django/db/models/base.pys su6All 'index_together' elements must be lists or tuples.u models.E009uindex_togetherN( RMRBtindex_togetherRURRRRRUt_check_local_fields(RuRXR_((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRs  cCst|jjttfs7tjdd|ddgStd|jjDrotjdd|ddgSg}x-|jjD]}|j|j |dqW|Sd S( u. Check the value of "unique_together" option. u*'unique_together' must be a list or tuple.RRu models.E010css%|]}t|ttf VqdS(N(RMRUR(RER_((s9/usr/lib/python2.7/site-packages/django/db/models/base.pys su7All 'unique_together' elements must be lists or tuples.u models.E011uunique_togetherN( RMRBR]RURRRRRUR(RuRXR_((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyR s  c Cs/ddlm}d|jjdtD}g}x|D]}y||}Wn=tk r|jtjd||fd|ddq<Xt |j |j r|jtjd |||fd|dd q<||jj kr<|jtjd |||jj fd d d|ddq<q<W|S(Ni(tmodelscSsi|]}||jqS((R7(RER((s9/usr/lib/python2.7/site-packages/django/db/models/base.pys ,s Ru+'%s' refers to the non-existent field '%s'.RRu models.E012uV'%s' refers to a ManyToManyField '%s', but ManyToManyFields are not permitted in '%s'.u models.E013u;'%s' refers to field '%s' which is not local to model '%s'.Ru4This issue may be caused by multi-table inheritance.u models.E016(t django.dbRRBt _get_fieldsRPRR_RRRMRct ManyToManyRelR\R(RuR_toptionRtforward_fields_mapRXR R((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyR%s:    c CsW|jjr(tjdd|ddgS|jjsA|jj rEgSt|jjttfs|tjdd|ddgSg}|jj}d|D}d|D}d |D}d |D}g}|j}t t j d t |j |j D}|j||x4|D],}|jtjd |d|dd q#W|S(uU Check "ordering" option -- is it a list of strings and do all fields exist? u?'ordering' and 'order_with_respect_to' cannot be used together.RRu models.E021uQ'ordering' must be a tuple or list (even if you want to order by only one field).u models.E014css!|]}|dkr|VqdS(u?N((RERG((s9/usr/lib/python2.7/site-packages/django/db/models/base.pys rscss.|]$}|jdr"|dn|VqdS(u-iN(R(RERG((s9/usr/lib/python2.7/site-packages/django/db/models/base.pys uscss!|]}t|kr|VqdS(N(R(RERG((s9/usr/lib/python2.7/site-packages/django/db/models/base.pys yscSs"h|]}|dkr|qS(upk((RERG((s9/usr/lib/python2.7/site-packages/django/db/models/base.pys }s cssF|]<}|jo|j s.|j|jfn|jjfVqdS(N(RItconcreteR7RRtrelated_query_name(RERG((s9/usr/lib/python2.7/site-packages/django/db/models/base.pys su1'ordering' refers to the non-existent field '%s'.u models.E015(RBt_ordering_clashRRRRVRMRRUReRt from_iterableR_trelated_objectsRUR_(RuRXR_tinvalid_fieldsRt valid_fieldst invalid_field((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRUs>        c Csg}d }d }xtjjD]}tj||s@q"nt|}|jj}|d ks"|j j rwq"q"|d kr|}|}q"||kr"|}|}q"q"W|d kr|Sx|j j D]}}|j \}} |jd kr| d k rt| |kr|jtjd| ||fddd|ddqqWx|j jD]}t|jjtjrq\nx|jjj j D]}} | j \}} | jd kr| d k rt| |kr|jtjd| ||fddd|dd qqWq\W|S( u Check that any auto-generated column names are shorter than the limits for each database in which the model will be created. u\Autogenerated column name too long for field "%s". Maximum length is "%s" for database "%s".Ru/Set the column name manually using 'db_column'.RRu models.E018u`Autogenerated column name too long for M2M field "%s". Maximum length is "%s" for database "%s".u\Use 'through' to create a separate model for M2M and then set column_name using 'db_column'.u models.E019N(R:Rt DATABASESRhRtallow_migrate_modelRtopstmax_name_lengthRittruncates_namesRBR\Rt db_columnRR_RRR]RMRcRR"t string_types( RuRXt allowed_lentdb_aliasRRRRGR}Rtm2mtrel_name((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRsT      --N(:R2R3Rt classmethodRR0R1RRRR8R9R:RRRRRR R RPRRkt alters_dataRR R!R'R,R>RCRJRRNROR\RQRRRSRtRkRRRgRRRRRRRRRRRRRR(((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRsp h         4   N '   3         4 -   $    :0Ac Cs|dkrt}n|jj}|j|}tjd|dtDx<t|D].\}}|j j d||j d|qVWWdQXdS(NRRRR*( R:R RBRtget_forward_related_filterRRRPt enumeratetobjectsRRo(t ordered_objR/tid_listRt order_wrtR2titj((s9/usr/lib/python2.7/site-packages/django/db/models/base.pytmethod_set_orders   cCsI|jj}|j|}|jjj}|jj|j|dtS(Ntflat( RBRRRR7RRt values_listRk(RR/RR2tpk_name((s9/usr/lib/python2.7/site-packages/django/db/models/base.pytmethod_get_orders cCsPt|d|jjtt|t|d|jjtt|dS(Nu get_%s_orderu set_%s_order(RR2tlowerR'RR(Rdt related_model((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyRscCs4t|tr!tj|}n|}|j|S(uA Used to unpickle Model subclasses with deferred fields. (RMRURRRL(tmodel_idRd((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyR scCst||}|j|S(N(RORL(tklasstexception_namet exception((s9/usr/lib/python2.7/site-packages/django/db/models/base.pyR4s(Yt __future__RRlRRt itertoolsRt django.appsRt django.confRt django.coreRtdjango.core.exceptionsRRRRR R RR R R RRRRtdjango.db.models.constantsRtdjango.db.models.deletionRRtdjango.db.models.fields.relatedRRRRtdjango.db.models.managerRtdjango.db.models.optionsRtdjango.db.models.queryRtdjango.db.models.signalsRRRRR tdjango.db.models.utilsR!t django.utilsR"tdjango.utils.deprecationR#tdjango.utils.encodingR$R%R&tdjango.utils.functionalR'tdjango.utils.six.movesR(tdjango.utils.textR)R*tdjango.utils.translationR+R}tdjango.utils.versionR,tobjectR-RR:R?R;R@Rtwith_metaclassRRRRRRkt__safe_for_unpickle__R4(((s9/usr/lib/python2.7/site-packages/django/db/models/base.pytsX   .4"(  }