mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Removed hyphen from pre-/re- prefixes.
"prepopulate", "preload", and "preprocessing" are already in the spelling_wordlist. This also removes hyphen from double "e" combinations with "pre" and "re", e.g. preexisting, preempt, reestablish, or reenter. See also: - https://ahdictionary.com/word/search.html?q=rerun - https://ahdictionary.com/word/search.html?q=recreate - https://ahdictionary.com/word/search.html?q=predetermined - https://ahdictionary.com/word/search.html?q=reuse - https://ahdictionary.com/word/search.html?q=reopening
This commit is contained in:
parent
33e89de8ca
commit
ce586ed693
26 changed files with 36 additions and 33 deletions
|
@ -164,7 +164,7 @@ So when we handle a model instance in a view, we typically retrieve it from the
|
|||
database. When we're dealing with a form we typically instantiate it in the
|
||||
view.
|
||||
|
||||
When we instantiate a form, we can opt to leave it empty or pre-populate it, for
|
||||
When we instantiate a form, we can opt to leave it empty or prepopulate it, for
|
||||
example with:
|
||||
|
||||
* data from a saved model instance (as in the case of admin forms for editing)
|
||||
|
@ -207,7 +207,7 @@ Now you'll also need a view corresponding to that ``/your-name/`` URL which will
|
|||
find the appropriate key/value pairs in the request, and then process them.
|
||||
|
||||
This is a very simple form. In practice, a form might contain dozens or
|
||||
hundreds of fields, many of which might need to be pre-populated, and we might
|
||||
hundreds of fields, many of which might need to be prepopulated, and we might
|
||||
expect the user to work through the edit-submit cycle several times before
|
||||
concluding the operation.
|
||||
|
||||
|
|
|
@ -820,7 +820,7 @@ Then, pass your ``BaseAuthorFormSet`` class to the factory function::
|
|||
>>> AuthorFormSet = modelformset_factory(
|
||||
... Author, fields=('name', 'title'), formset=BaseAuthorFormSet)
|
||||
|
||||
If you want to return a formset that doesn't include *any* pre-existing
|
||||
If you want to return a formset that doesn't include *any* preexisting
|
||||
instances of the model, you can specify an empty QuerySet::
|
||||
|
||||
>>> AuthorFormSet(queryset=Author.objects.none())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue