Marc Tamlyn
6e90bfde88
Merge pull request #1262 from batisteo/ticket-20591
...
Fixed #20591 : added version in docs for utils.module_loading.import_by_path
2013-06-12 02:15:26 -07:00
Baptiste Darthenay
8821bcb2a0
Fixed #20591 : added version in docs for utils.module_loading.import_by_path.
2013-06-12 10:50:37 +02:00
Tim Graham
92c49d6f01
Revert "Fixed #20462 - Fixed sqlite regex lookups for null values and non-string fields."
...
This reverts commit 64041f0e6e
.
lookup.tests.LookupTests.test_regex_non_string fails under Postgres.
We should also try to rewrite the test using an existing model.
2013-06-11 17:55:19 -04:00
Claude Paroz
78974ed525
Added docs subdir to gitignore
...
To be able to build translated documentation, docs/locale should
be a symbolic link to the django-docs-translations/translations
directory.
2013-06-11 22:39:53 +02:00
Axel Haustant
64041f0e6e
Fixed #20462 - Fixed sqlite regex lookups for null values and non-string fields.
2013-06-11 14:13:40 -04:00
Tim Graham
536703abf0
Fixed #20500 - Updated flatpages URLconf example to work with APPEND_SLASH.
...
Thanks josh.23.french@.
2013-06-11 12:25:39 -04:00
Wilfred Hughes
b79aa796d8
FormSet.forms is an iterable, so just iterate over it
2013-06-11 16:05:19 +01:00
Marc Tamlyn
51739c6241
Merge pull request #1258 from batisteo/ticket-20585
...
Fixed #20585 : normalize signature of DeletionMixin.post.
2013-06-11 03:44:37 -07:00
Baptiste Darthenay
52f99b78bc
Fixed #20585 : normalize signature of DeletionMixin.post.
2013-06-11 12:40:06 +02:00
Tim Graham
9ff5f100dd
Fixed #20578 - Typo in BaseFormSet module name
2013-06-10 14:36:40 -04:00
Gabe Jackson
584bd14dcf
Fixed #18134 -- BoundField.label_tag now includes the form's label_suffix
...
There was an inconsistency between how the label_tag for forms were
generated depending on which method was used: as_p, as_ul and as_table
contained code to append the label_suffix where as label_tag called on a
form field directly did NOT append the label_suffix. The code for
appending the label_suffix has been moved in to the label_tag code of
the field and the HTML generation code for as_p, as_ul and as_table now
calls this code as well.
This is a backwards incompatible change because users who have added the
label_suffix manually in their templates may now get double label_suffix
characters in their forms.
2013-06-10 14:23:15 -04:00
Tim Graham
a643e4d200
Merge pull request #1255 from camilonova/patch-2
...
Made URL patterns consistent in docs/ref/contrib/flatpages.txt
2013-06-10 06:47:15 -07:00
Florian Apolloner
af70dfcf31
Reverted the introduction of shared_models.
...
The recent improvements should make shared_models obsolete.
This reverts commit 1059da8de6
, reversing
changes made to 4fa7f3cdd9
.
2013-06-10 12:34:47 +02:00
Florian Apolloner
f5d4849cbe
Revert "Began implementing a shared set of test models to speed up tests."
...
This reverts commit 22b7870e40
.
2013-06-10 12:22:40 +02:00
Aymeric Augustin
dfcce4288a
Fixed available_apps for selenium tests.
...
Refs #20483 .
2013-06-10 12:11:46 +02:00
Aymeric Augustin
c6e6d4eeb7
Defined available_apps in relevant tests.
...
Fixed #20483 .
2013-06-10 11:30:01 +02:00
Aymeric Augustin
4daf570b98
Added TransactionTestCase.available_apps.
...
This can be used to make Django's test suite significantly faster by
reducing the number of models for which content types and permissions
must be created and tables must be flushed in each non-transactional
test.
It's documented for Django contributors and committers but it's branded
as a private API to preserve our freedom to change it in the future.
Most of the credit goes to Anssi. He got the idea and did the research.
Fixed #20483 .
2013-06-10 11:24:10 +02:00
Aymeric Augustin
13b7f299de
Added a stealth option to flush to allow cascades.
...
This allows using flush on a subset of the tables without having to
manually cascade to all tables with foreign keys to the tables being
truncated, when they're known to be empty.
On databases where truncate is implemented with DELETE FROM, this
doesn't make a difference. The cascade is allowed, not mandatory.
2013-06-10 11:21:54 +02:00
Aymeric Augustin
7a65c95d42
Refactored file_storage tests to avoid depending on servers tests.
2013-06-10 11:16:15 +02:00
Tim Graham
96c71d423d
Added runserver validation to detect if DEBUG=False and ALLOWED_HOSTS is empty.
...
Refs #19875 .
2013-06-09 15:08:29 -04:00
Tim Graham
4e94c84e50
Fixed #19875 - Added warnings regarding DEBUG=False and empty ALLOWED_HOSTS
2013-06-09 15:05:15 -04:00
Tim Graham
175a102ddc
Fixed #20567 - Documented BoundField.id_for_label.
...
Thanks littlepig for the suggestion.
2013-06-09 12:13:43 -04:00
Tim Graham
a47116cb4c
Merge pull request #1256 from krmboya/patch-1
...
Fixed #20575 -- Typo in docs/topics/forms/media.txt
2013-06-09 09:09:44 -07:00
Aymeric Augustin
79ff1aedd5
Replaced a dict emulating a set with a set.
2013-06-09 14:31:04 +02:00
Kenny Rachuonyo
4bd6e5e895
Update media.txt
...
Fixed typo: froms -> forms
2013-06-09 08:23:48 +03:00
Camilo Nova
706eced9bb
Update flatpages.txt
...
Fixed typo
2013-06-08 10:45:39 -05:00
Claude Paroz
6a092f24e0
Allow build of translated documentation
2013-06-08 16:13:51 +02:00
Tim Graham
cc74f8a4f7
Merge pull request #1254 from russkel/patch-1
...
Updated submitting-patches.txt
2013-06-08 05:34:05 -07:00
russkel
f80b1063e4
Update submitting-patches.txt
...
Few quick fixes to the terminology in order to match what is used on the Django Trac at the moment.
2013-06-08 14:53:27 +09:00
Chris Streeter
69373f3420
Fixed #19925 - Added validation for REQUIRED_FIELDS being a list
...
Thanks Roman Alexander for the suggestion.
2013-06-07 19:58:41 -04:00
Andrew Godwin
315ab41e41
Initial stab at a migrate command, it's probably quite a way off.
2013-06-07 18:47:17 +01:00
Andrew Godwin
91c470def5
Auto-naming for migrations and some writer fixes
2013-06-07 17:56:43 +01:00
Andrew Godwin
cd809619a2
Autodetector tests
2013-06-07 15:49:48 +01:00
Andrew Godwin
c7aa4b5338
Field encoding
2013-06-07 15:36:31 +01:00
Andrew Godwin
4492f06408
A bit of an autodetector and a bit of a writer
2013-06-07 15:28:38 +01:00
Andrew Godwin
3c296382b8
Merge remote-tracking branch 'core/master' into schema-alteration
...
Conflicts:
django/db/models/fields/related.py
2013-06-07 11:15:34 +01:00
Jacob Kaplan-Moss
357d62d9f2
Explained that timezone.now() always returns times in UTC.
...
The docs were ambiguous about the time zone for now(), leading people to
assume that it would be the current time zone rather that UTC.
2013-06-06 11:05:33 -05:00
Jacob Kaplan-Moss
80b1511311
Bumped verion numbers for 1.6a1.
2013-06-06 11:05:33 -05:00
Stephen Burrows
e2518fdf46
Fixed #12337 - Honor ModelForm.Meta.exclude when saving ManyToManyFields.
...
Thanks margieroginski for the report.
2013-06-06 10:01:48 -04:00
Claude Paroz
b67f2ac8e6
Fixed #20502 (again) -- More i18n cache flush in tests
...
Thanks Timo Graham for noticing the failures.
2013-06-06 14:28:58 +02:00
Marc Tamlyn
9ed971f4f1
Merge pull request #1245 from oinopion/list_select_related
...
Fixed #19080 -- Fine-grained control over select_related in admin
2013-06-06 01:27:05 -07:00
Anssi Kääriäinen
31fd64ad8a
Fixed #20564 -- Generic relations exclude() regression
...
The patch for #19385 caused a regression in certain generic relations
.exclude() filters if a subquery was needed. The fix contains a
refactoring to how Query.split_exclude() and Query.trim_start()
interact.
Thanks to Trac alias nferrari for the report.
2013-06-06 01:54:46 +03:00
Tomek Paczkowski
0fd9f7c95f
Fixed #19080 -- Fine-grained control over select_related in admin
2013-06-05 23:08:00 +02:00
Anssi Kääriäinen
8c5b805ca1
PEP 8 cleanup
2013-06-05 21:18:56 +03:00
Tim Graham
bb863faecd
Proofed the 1.6 release notes
2013-06-05 12:55:58 -04:00
Bojan Mihelac
b00c6371af
Fixed #17927 -- Added initial values support for BaseGenericInlineFormSet
...
Thanks Fak3 for the suggestion.
2013-06-05 07:59:59 -04:00
Tim Graham
a35ed20241
Fixed #18924 -- Made test.Client.logout send user_logged_out signal.
...
Thanks awsum for the suggestion and Pavel Ponomarev and
Florian Hahn for the patch.
2013-06-04 12:39:09 -04:00
Ramiro Morales
e71b63e280
Added i18n-related URL mapper test for a mailing list report.
2013-06-04 11:19:27 -03:00
Marc Tamlyn
687afdaa48
Merge pull request #1241 from jaylett/master
...
Explicit exception chaining for db exceptions by setting __cause__ in py2
2013-06-04 05:28:21 -07:00
James Aylett
5448555785
Fixed #17601 -- expose underlying db exceptions under py2
...
Use __cause__ to expose the underlying database exceptions even
under python 2.
2013-06-04 12:46:10 +01:00