admin.ModelAdmin.change_form_template

ModelAdmin.change_form_template Path to a custom template, used by change_view().

auth.forms.PasswordChangeForm

class PasswordChangeForm A form for allowing a user to change their password.

db.models.Field.one_to_one

Field.one_to_one Boolean flag that is True if the field has a one-to-one relation, such as a OneToOneField; False otherwise.

admin.AdminSite.password_change_done_template

AdminSite.password_change_done_template Path to a custom template that will be used by the admin site password change done view.

db.models.Field.choices

Field.choices An iterable (e.g., a list or tuple) consisting itself of iterables of exactly two items (e.g. [(A, B), (A, B) ...]) to use as choices for this field. If this is given, the default form widget will be a select box with these choices instead of the standard text field. The first element in each tuple is the actual value to be set on the model, and the second element is the human-readable name. For example: YEAR_IN_SCHOOL_CHOICES = ( ('FR', 'Freshman'), ('SO', 'Sophomore')

postgres.forms.SimpleArrayField.max_length

max_length This is an optional argument which validates that the array does not exceed the stated length.

Time zones

Overview When support for time zones is enabled, Django stores datetime information in UTC in the database, uses time-zone-aware datetime objects internally, and translates them to the end user’s time zone in templates and forms. This is handy if your users live in more than one time zone and you want to display datetime information according to each user’s wall clock. Even if your website is available in only one time zone, it’s still good practice to store data in UTC in your database. The ma

utils.dateparse.parse_date()

parse_date(value) [source] Parses a string and returns a datetime.date.

auth.models.User.is_anonymous

is_anonymous Read-only attribute which is always False. This is a way of differentiating User and AnonymousUser objects. Generally, you should prefer using is_authenticated to this attribute. Changed in Django 1.10: In older versions, this was a method. Backwards-compatibility support for using it as a method will be removed in Django 2.0.

utils.feedgenerator.Atom1Feed

class Atom1Feed(SyndicationFeed) [source] Spec: https://tools.ietf.org/html/rfc4287