- Language: en
5 results for isinstance in the development version
-
Widgets
- … isinstance ( value , date ): return [ value . day , value . month , value . year ] elif isinstance ( value , str ): year …
-
Model field reference
- … isinstance checks when you need to write code that depends on a field’s functionality …
-
QuerySet API reference
- … isinstance ( Entry . objects . none (), EmptyQuerySet ) True all() all () Returns a copy of the current QuerySet …
-
Logging
- … isinstance ( exc_value , UnreadablePostError ): return False return True and then add it to your logging …
-
The Django admin site
- … isinstance ( inline , MyInline ) or obj is not None : yield inline . get_formset ( request , obj ), inline …