forms.models.inlineformset_factory()
  • References/Python/Django/API/Forms/Model Form Functions

inlineformset_factory(parent_model, model, form=ModelForm, formset=BaseInlineFormSet, fk_name=None, fields=None, exclude=None, extra=3, can_order=False, can_delete=True

2025-01-10 15:47:30
admin.AdminSite.password_change_template
  • References/Python/Django/API/contrib packages/The Django admin site

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

2025-01-10 15:47:30
forms.CheckboxInput
  • References/Python/Django/API/Forms/Widgets

class CheckboxInput [source] Checkbox: <input type='checkbox' ...>

2025-01-10 15:47:30
forms.GenericIPAddressField.unpack_ipv4
  • References/Python/Django/API/Forms/Form fields

unpack_ipv4 Unpacks IPv4 mapped addresses like ::ffff:192.0.2.1. If this option is enabled that address would be

2025-01-10 15:47:30
contrib packages
  • References/Python/Django/API/contrib packages

Django aims to follow Python’s

2025-01-10 15:47:30
urls.get_script_prefix()
  • References/Python/Django/API/django.urls utility functions

get_script_prefix() [source] Normally, you should always use reverse() to define

2025-01-10 15:47:30
gis.feeds.Feed.geometry()
  • References/Python/Django/API/Geographic Feeds

geometry(obj) Takes the object returned by get_object() and returns the feed’s geometry. Typically this

2025-01-10 15:47:30
utils.cache.learn_cache_key()
  • References/Python/Django/API/Django Utils

learn_cache_key(request, response, cache_timeout=None, key_prefix=None) [source] Learns what

2025-01-10 15:47:30
utils.cache.get_max_age()
  • References/Python/Django/API/Django Utils

get_max_age(response) [source] Returns the max-age from the response Cache-Control header

2025-01-10 15:47:30
db.models.query.QuerySet.update_or_create()
  • References/Python/Django/API/Models/QuerySet API reference

update_or_create(defaults=None, **kwargs) A convenience method for updating an object with the given kwargs, creating

2025-01-10 15:47:30