admin.AdminSite.login_form

AdminSite.login_form Subclass of AuthenticationForm that will be used by the admin site login view.

test.TransactionTestCase.reset_sequences

TransactionTestCase.reset_sequences Setting reset_sequences = True on a TransactionTestCase will make sure sequences are always reset before the test run: class TestsThatDependsOnPrimaryKeySequences(TransactionTestCase): reset_sequences = True def test_animal_pk(self): lion = Animal.objects.create(name="lion", sound="roar") # lion.pk is guaranteed to always be 1 self.assertEqual(lion.pk, 1) Unless you are explicitly testing primary keys sequence numbers, it

db.models.Options.base_manager_name

Options.base_manager_name New in Django 1.10. The name of the manager to use for the model’s _base_manager.

gis.db.models.MultiPolygonField

class MultiPolygonField

sessions.base_session.BaseSessionManager.encode()

encode(session_dict) Returns the given session dictionary serialized and encoded as a string. Encoding is performed by the session store class tied to a model class.

core.signing.Signer

class Signer(key=None, sep=':', salt=None) [source] Returns a signer which uses key to generate signatures and sep to separate values. sep cannot be in the URL safe base64 alphabet. This alphabet contains alphanumeric characters, hyphens, and underscores.

contenttypes.fields.GenericRelation.related_query_name

related_query_name The relation on the related object back to this object doesn’t exist by default. Setting related_query_name creates a relation from the related object back to this one. This allows querying and filtering from the related object.

auth.views.login()

login(request, template_name=`registration/login.html`, redirect_field_name='next', authentication_form=AuthenticationForm, current_app=None, extra_context=None, redirect_authenticated_user=False) URL name: login See the URL documentation for details on using named URL patterns. Optional arguments: template_name: The name of a template to display for the view used to log the user in. Defaults to registration/login.html. redirect_field_name: The name of a GET field containing the URL to red

admin.InlineModelAdmin.classes

InlineModelAdmin.classes New in Django 1.10. A list or tuple containing extra CSS classes to apply to the fieldset that is rendered for the inlines. Defaults to None. As with classes configured in fieldsets, inlines with a collapse class will be initially collapsed and their header will have a small “show” link.

db.models.Field.editable

Field.editable If False, the field will not be displayed in the admin or any other ModelForm. They are also skipped during model validation. Default is True.