- Language: en
6 results for classmethod in version 3.2
-
Testing tools
- … classmethod def setUpClass ( cls ): super () . setUpClass () ... @classmethod def tearDownClass ( cls ): ... super () . tearDownClass () Be sure to account …
-
How to use sessions
- … classmethod def get_session_store_class ( cls ): return SessionStore class SessionStore ( DBStore ): @classmethod def get_model …
-
Customizing authentication in Django
- … classmethod get_email_field_name () Returns the name of the email field specified by the EMAIL …
-
Managers
- … classmethod from_queryset ( queryset_class ) For advanced usage you might want both a custom Manager …
-
System check framework
- … classmethod, not an instance method: class MyModel ( models . Model ): @classmethod def check ( cls , ** kwargs ): errors …
-
Advanced testing topics
- … classmethod DiscoverRunner. add_arguments ( parser ) [source] Override this class method to add custom arguments accepted …