| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
GenericRelation not supporting aggregation.
This works at least as far back as Django 1.6 according to the test
added in refs #10870.
|
|
|
|
| |
disambiguate it from a list.
|
| |
|
|
|
|
| |
ContentType.name field.
|
|
|
|
|
|
|
|
|
| |
check to Model.save()
This mostly reverts 5643a3b51be338196d0b292d5626ad43648448d3 and
81e1a35c364e5353d2bf99368ad30a4184fbb653.
Thanks Carl Meyer for review.
|
|
|
|
| |
on_delete for ForeignKey/OneToOneField
|
|
|
|
|
|
| |
class/function/method signatures in docs.
Thanks hellbeast for the initial patch.
|
|
|
|
| |
assignment check to be bypassed.
|
| |
|
|
|
|
| |
timeline; refs #19774.
|
| |
|
|
|
|
|
|
| |
This finsishes the work started on #16803.
Thanks Simon Charette, Tim Graham and Collin Anderson for the
reviews.
|
| |
|
|
|
|
|
|
|
|
| |
inlines, and the admin.
Thanks Stephen Burrows for work on the patch as well.
Forwardport of 2914f66983a92fcae55673c517dd8d01e8c238c4 from stable/1.7.x
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
reverse lookups
GenericRelation now supports an optional related_query_name argument.
Setting related_query_name adds a relation from the related object back to
the content type for filtering, ordering and other query operations.
Thanks to Loic Bistuer for spotting a couple of important issues in
his review.
|
|
|
|
| |
Thanks Tim Graham for the report and recommendations
|
|
|
|
|
|
|
| |
It contained models, forms and admin objects causing undesirable
import side effects. Refs #16368.
Thanks to Ramiro, Carl and Loïc for the review.
|
|
|
|
|
|
| |
can't be accessed in forms.
Thanks marky1991.
|
|\
| |
| |
| |
| |
| |
| | |
schema-alteration
Conflicts:
docs/ref/django-admin.txt
|
| | |
|
|/
|
|
| |
references
|
|
|
|
|
|
| |
__unicode__
Thanks Marc Tamlyn and Tim Graham for the review.
|
|
|
|
| |
Thanks Riley Strong for the report.
|
|
|
|
|
|
|
|
|
|
|
| |
`GenericForeignKey`.
Allows a `GenericForeignKey` to reference proxy models. The default
for `for_concrete_model` is `True` to keep backwards compatibility.
Also added the analog `for_concrete_model` kwarg to
`generic_inlineformset_factory` to provide an API at the form level.
|
|
|
|
|
|
|
|
| |
SimpleTestCase.
Thanks zalew for the suggestion and work on a patch.
Also updated, tweaked and fixed testing documentation.
|
|
|
|
| |
Refs #20104.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
max_num on server.
This is provided as a new "validate_max" formset_factory option defaulting to
False, since the non-validating behavior of max_num is longstanding, and there
is certainly code relying on it. (In fact, even the Django admin relies on it
for the case where there are more existing inlines than the given max_num). It
may be that at some point we want to deprecate validate_max=False and
eventually remove the option, but this commit takes no steps in that direction.
This also fixes the DoS-prevention absolute_max enforcement so that it causes a
form validation error rather than an IndexError, and ensures that absolute_max
is always 1000 more than max_num, to prevent surprising changes in behavior
with max_num close to absolute_max.
Lastly, this commit fixes the previous inconsistency between a regular formset
and a model formset in the precedence of max_num and initial data. Previously
in a regular formset, if the provided initial data was longer than max_num, it
was truncated; in a model formset, all initial forms would be displayed
regardless of max_num. Now regular formsets are the same as model formsets; all
initial forms are displayed, even if more than max_num. (But if validate_max is
True, submitting these forms will result in a "too many forms" validation
error!) This combination of behaviors was chosen to keep the max_num validation
simple and consistent, and avoid silent data loss due to truncation of initial
data.
Thanks to Preston for discussion of the design choices.
|
| |
|
| |
|
|
|
|
| |
Thanks epicserve for the suggestion.
|
|
|
|
| |
Added -n to sphinx builds to catch issues going forward.
|
| |
|
|
|
|
| |
for Django 1.3
|
|
|
|
| |
thanks sir_sigurd for the report.
|
| |
|
|
|
|
|
|
|
|
| |
proxy models
Added kwargs for_concrete_model and for_concrete_models to ContentType
methods get_for_model() and get_for_models(). By setting the flag to
False, it is possible to get the contenttype for proxy models.
|
| |
|
|
|
|
| |
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17703 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
accidentally missed from [16955]
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16983 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
and use it in the the auth permissions code. This is a solid performance gain on the test suite. Thanks to ptone for the profiling to find this hotspot, and carl for the review.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16963 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
`django.db.models.query.QuerySet` and converted some tabs that were introduced in r16699 to spaces.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16915 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
documentation. Thanks jsdalton.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16536 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
BaseGenericInlineFormset. Thanks leonelfreire for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16113 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
relation docs regarding different choices for storing PK references for a GenericForeignKey. Thanks to mrmachine for the all the work on the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15545 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
Framework docs.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15544 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
documentation by mentioning the concrete Generic{Tabular,Stacked}Inline classes that should be used. Thanks loki77 for the report.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@15124 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
ForeignKey to control cascade behavior. Also refactored deletion for efficiency and code clarity. Many thanks to Johannes Dollinger and Michael Glassford for extensive work on the patch, and to Alex Gaynor, Russell Keith-Magee, and Jacob Kaplan-Moss for review.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14507 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|
|
|
|
|
|
| |
Thanks to ramiro for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13628 bcc190cf-cafb-0310-a4f2-bffc1f526a37
|