summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2015-03-25Fixed #24215 -- Refactored lazy model operationsAlex Hill
This adds a new method, Apps.lazy_model_operation(), and a helper function, lazy_related_operation(), which together supersede add_lazy_relation() and make lazy model operations the responsibility of the App registry. This system no longer uses the class_prepared signal.
2015-03-25Fixed #24441 -- Changed get_image_dimensions() return value for broken imagesRaúl Cumplido
2015-03-25Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen
Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
2015-03-25Refs #24267 -- Implemented lookups for related fieldsAnssi Kääriäinen
Previously related fields didn't implement get_lookup, instead related fields were treated specially. This commit removed some of the special handling. In particular, related fields return Lookup instances now, too. Other notable changes in this commit is removal of support for annotations in names_to_path().
2015-03-24Refs #18586 -- Split up tests.m2m_through_regressMichael Blatherwick
2015-03-24Fixed #24483 -- Prevented keepdb from breaking with generator choices.David Szotten
If Field.choices is provided as an iterator, consume it in __init__ instead of using itertools.tee (which ends up holding everything in memory anyway). Fixes a bug where deconstruct() was consuming the iterator but bypassing the call to `tee`.
2015-03-24Removed getLogger alias in django.utils.log.Tim Graham
2015-03-23Fixed #12400 -- Allowed geometry fields in unique_togetherClaude Paroz
Thanks Tim Graham for the review.
2015-03-23Fixed #24521 -- Added support for serializing frozensets in migrations.Baptiste Mispelon
2015-03-23Fixed #23697 -- Improved ForeignObject.get_lookup_constraint() error message.Michael Blatherwick
2015-03-23Fixed #16362 -- Allowed lookaround assertions in URL patterns.Bas Peschier
2015-03-23Added test for LogEntry.get_edited_object(); refs #24244.Varun Sharma
2015-03-23Fixed #13525 -- Added tests and docs for nested parameters in URL patterns.Bas Peschier
When reversing, only outer parameters are used if captured parameters are nested. Added tests to check the edge cases and documentation for the behavior with an example to avoid it.
2015-03-22Switched to use assertEqual instead of assertEquals.Berker Peksag
2015-03-22Refs #18586 -- Split up tests/m2m_signalsAlain IVARS
2015-03-22Fixed #24485 -- Allowed combined expressions to set output_fieldJosh Smeaton
2015-03-22Fixed #24508 -- Made annotations commutativeJosh Smeaton
2015-03-21Revert "Removed unneeded app_label definitions in gis_tests"Claude Paroz
This reverts commit e0cc36f615f70061e034f5ba3f4e75330f51d3ca. The problem is the following: * With non-gis backends, gis_tests sub apps are not discovered (see runtests.py) * Consequently, the app_label is inferred from the gis_tests AppConfig * Then models with same names in different sub apps conflict because of same model_name/app_label pair.
2015-03-21Removed unneeded app_label definitions in gis_testsClaude Paroz
2015-03-21Fixed #24479 -- Added system check to prevent both ordering and order_wrt.Jon Dufresne
2015-03-21Fixed #24515 -- Fixed DjangoTranslation plural handlingClaude Paroz
2015-03-20Fixed #24490 -- Set LogEntry.change_message when adding an object.Karl Hobley
2015-03-20Removed unused imports.Tim Graham
2015-03-20Fixed #22106 -- Allowed using more than one instance of javascript_catalog ↵Moritz Sichert
per project.
2015-03-20Adapted sendtestemail to be more argparse-ishClaude Paroz
2015-03-20Fixed gis test failures when numpy isn't installed.Daniel Wiesmann
Thanks to Bas Peschier for pointing this out. Refs #23804.
2015-03-20Removed unused import.Tim Graham
2015-03-20Used testing domain names in mail tests per rfc2606.Tim Graham
2015-03-20Fixed #24419 -- Added sendtestemail management commandLoek van Gent
2015-03-20Cleaned up the template debug implementation.Preston Timmons
This patch does three major things: * Merges the django.template.debug implementation into django.template.base. * Simplifies the debug implementation. The old implementation copied debug information to every token and node. The django_template_source attribute was set in multiple places, some quite hacky, like django.template.defaulttags.ForNode. Debug information is now annotated in two high-level places: * Template.compile_nodelist for errors during parsing * Node.render_annotated for errors during rendering These were chosen because they have access to the template and context as well as to all exceptions that happen during either the parse or render phase. * Moves the contextual line traceback information creation from django.views.debug into django.template.base.Template. The debug views now only deal with the presentation of the debug information.
2015-03-20Fixed #24285 -- Made for_user argument optional for {% get_admin_log %} tagYair Chuchem
2015-03-19Fixed #24417 -- Added ModelAdmin.get_list_select_related()Loek van Gent
2015-03-18Made is_safe_url() reject URLs that start with control characters.Tim Graham
This is a security fix; disclosure to follow shortly.
2015-03-18Fixed an infinite loop possibility in strip_tags().Tim Graham
This is a security fix; disclosure to follow shortly.
2015-03-18Fixed #24495 -- Allowed unsaved model instance assignment check to be bypassed.Karl Hobley
2015-03-18Fixed #23757 -- Added 3D introspection support to Spatialite backendClaude Paroz
Thanks Tim Graham for the review.
2015-03-18Refs #24483 -- Added a test for deconstruction of Field.choicesTim Graham
2015-03-18Fixed #23960 -- Removed http.fix_location_headerClaude Paroz
Thanks Carl Meyer for the report and Tim Graham for the review.
2015-03-18Fixed #24476 -- Added context manager/decorator for overriding script prefix.Bas Peschier
Tests were using an undocumented keyword argument for easily overriding script prefix while reversing. This is now changed into a test utility which can be used as decorator or context manager.
2015-03-18Refs #24469 -- Fixed escaping of forms, fields, and media in non-Django ↵Moritz Sichert
templates.
2015-03-17Refs #24485 -- Renamed some expression typesJosh Smeaton
2015-03-17Fixed #24486 -- Fixed error with datetime and DurationField arithmeticJosh Smeaton
2015-03-17Fixed #15579 -- Added ability to delete only child models in multi-table ↵Andriy Sokolovskiy
inheritance.
2015-03-17Made SRID a required parameter for GDALRaster instantiation; refs #23804.Daniel Wiesmann
Earlier versions of GDAL do not allow the srid to be set to 0, so it should be a required parameter to ensure compatibility.
2015-03-16Added write support for GDALRasterDaniel Wiesmann
- Instantiation of GDALRaster instances from dict or json data. - Retrieve and write pixel values in GDALBand objects. - Support for the GDALFlushCache in gdal C prototypes - Added private flush method to GDALRaster to make sure all data is written to files when file-based rasters are changed. - Replaced ``ptr`` with ``_ptr`` for internal ptr variable Refs #23804. Thanks Claude Paroz and Tim Graham for the reviews.
2015-03-16Fixed #24427 -- Stopped writing migration files in dry run mode when merging.John Giannelos
Also added display of migration to stdout when verbosity=3.
2015-03-16Fixed #24488 -- Made create_default_site() use default pk of 1.Marten Kenbeek
Fixed create_default_site() to use a default value in case settings.SITE_ID isn't set; refs #23945.
2015-03-16Fixed #24493 -- Added BaseContext.setdefault()Preston Timmons
2015-03-16Fixed #23926 -- Improved validation error for custom permissions that are ↵Joeri Bekker
too long.
2015-03-16Fixed #5986 -- Added ability to customize order of Form fieldsThomas Tanner