summaryrefslogtreecommitdiff
path: root/django/contrib
AgeCommit message (Collapse)Author
2012-08-25Added a GeoDjango test with a raw query (Refs #17448)Claude Paroz
Thanks David Eklund for the initial patch.
2012-08-23[py3] Removed duplicate imports.Aymeric Augustin
Fixed #18837. Refs #18791.
2012-08-20[py3] Fixed #18805 -- ported createsuperuser.Aymeric Augustin
Thanks sunsesh at gmail.com for the report.
2012-08-19Fixed #17278 -- Enabled the spatialite GIS tests to run without having to ↵Julien Phalip
specify a database name in the settings. Thanks to Aymeric for the report and to Ramiro for the initial patch.
2012-08-18[py3] Avoided passing a lazy string to urlparse.Aymeric Augustin
This causes an exception under Python 3. Fixed #18776.
2012-08-18[py3] Fixed formtools tests.Aymeric Augustin
Python 3 adds a new pickle protocol. The tests were updated in a way that makes it easy to add another pickle protocol, should Python gain one. Thanks Thomas Pelletier for providing an initial version of this patch.
2012-08-17Made createsuperuser more robust when getting current OS username.Ramiro Morales
Under some versions of OS X, failure in getting the default system locale during the syncdb operation of the auth app were causing hard to diagnose problems afterwards. No solution based on getpreferredencoding() was chosen because it has its own problems with certain combinations of Python and OS X versions (e.g. http://bugs.python.org/issue6202). Thanks prestonsimmons for the report and prestonsimmons and willhardy for the initial patch. Fixes #16017.
2012-08-15Removed unneeded smart_bytes import which was introduced in f2fff84bc.Florian Apolloner
2012-08-15[py3] fixed session file backend.Florian Apolloner
2012-08-15Ensured that about half of the files opened in the formtools tests were ↵Alex Gaynor
explicitly closed.
2012-08-15[py3] Removed map() calls used for side-effects onlyAnssi Kääriäinen
2012-08-15[py3] Fixed test_client_regress testsClaude Paroz
2012-08-15Fixed syndication under python3.Alex Gaynor
2012-08-15Final explicit closing for staticfiles, they now pass on python3 with -Wall ↵Alex Gaynor
and there are no warnings about unclosed files
2012-08-14[py3] Avoided the deprecated base64 interface.Aymeric Augustin
This fixes a deprecation warning under Python 3.
2012-08-14[py3] Fixed contrib.auth testsClaude Paroz
2012-08-14[py3] Fixed sitemaps tests.Aymeric Augustin
2012-08-14[py3] Fixed staticfiles testsClaude Paroz
2012-08-14There's no need to do `list(dict.keys())` list(dict)` is enough.Alex Gaynor
2012-08-14[py3] Fixed admin_views testsClaude Paroz
Also changed several occurrences of 'request' to 'response'.
2012-08-14[py3] Compared response.content with bytes.Aymeric Augustin
2012-08-14Reverted pickle-json replacement form_hmac calculationClaude Paroz
This reverts commit b109ff8062f4bb225181ec462d69c9dd79339567 and complement test cases. The change was too hasty, as some form values cannot be json-serialized as is.
2012-08-13[py3] Fixed contrib.formtools testsClaude Paroz
2012-08-13Replaced pickle by json in form_hmac calculationClaude Paroz
Refs #18340
2012-08-12[py3] Fix encoding issues in contrib.sessionsClaude Paroz
2012-08-12[py3] Made __repr__ return str with Python 3Claude Paroz
2012-08-12[py3] Refactored __unicode__ to __str__.Aymeric Augustin
* Renamed the __unicode__ methods * Applied the python_2_unicode_compatible decorator * Removed the StrAndUnicode mix-in that is superseded by python_2_unicode_compatible * Kept the __unicode__ methods in classes that specifically test it under Python 2
2012-08-12[py3] Removed redundant __str__ methods.Aymeric Augustin
These classes already have an identical __unicode__ method, which will be used after an upcoming refactoring.
2012-08-11Fixed #18754 -- cache keys created by post_processKaren Tracey
Corrected to always generate the cache keys from file names with forward slashes, not backslashes.
2012-08-11[py3] Decoded base64-encoded hash in contrib.auth.hashersAndrews Medina
2012-08-09[py3k] use the base64 module, instead of bytes.encode('base64')Alex Gaynor
2012-08-08[py3] Fixed Python 3 compatibility in localflavor formsClaude Paroz
2012-08-08[py3] Replaced raw_input by inputClaude Paroz
The six addition has been borrowed from: https://bitbucket.org/gutworth/six/changeset/733ef740
2012-08-08[py3] Fixed 'iterable but non string' detectionClaude Paroz
In Python 3, the str type has an __iter__ attribute. Therefore, the presence of an __iter__ attribute is not sufficient to distinguish 'standard' iterables (list, tuple) from strings.
2012-08-08remove a bunch of unnescesarry iterkeys() callsAlex Gaynor
2012-08-08[py3] Replaced __nonzero__ by __bool__Claude Paroz
Of course, __nonzero__ alias has been kept for Python 2 compatibility.
2012-08-08[py3] Made gis.measure Python 3-compatibleClaude Paroz
2012-08-07[py3] Minor fix in django.contrib.gis.Aymeric Augustin
2012-08-07[py3] Ported django.utils.encoding.Aymeric Augustin
* Renamed smart_unicode to smart_text (but kept the old name under Python 2 for backwards compatibility). * Renamed smart_str to smart_bytes. * Re-introduced smart_str as an alias for smart_text under Python 3 and smart_bytes under Python 2 (which is backwards compatible). Thus smart_str always returns a str objects. * Used the new smart_str in a few places where both Python 2 and 3 want a str.
2012-08-07[py3] Fixed access to dict keys/values/items.Aymeric Augustin
2012-08-04Fixed testing on SpatiaLite 2.4, which has support for `InitSpatialMetaData`.Justin Bronn
2012-08-04Fixed #7833 -- Improved UserCreationForm password validationClaude Paroz
Make UserCreationForm password validation similar to SetPasswordForm and AdminPasswordChangeForm, so as the match check is only done when both passwords are supplied. Thanks Mitar for the suggestion.
2012-08-04Fixed #5524 -- Do not remove cleaned_data when a form fails validationClaude Paroz
cleaned_data is no longer deleted when form validation fails but only contains the data that did validate. Thanks to the various contributors to this patch (see ticket).
2012-08-03Removed some pre-1.3.0 postgis compatibility codeClaude Paroz
2012-08-03Reorganized geoapp gis testsClaude Paroz
Removed the numbering of tests and moved lookup/geoqueryset tests in their own test class.
2012-07-24Fixed #18666 -- when upgrading a user's password to a new algorithm only ↵Alex Gaynor
save the password field to the databaes.
2012-07-22[py3] Added Python 3 compatibility for xrange.Aymeric Augustin
2012-07-22[py3] Switched to Python 3-compatible imports.Aymeric Augustin
xrange/range will be dealt with in a separate commit due to the huge number of changes.
2012-07-22[py3] Updated urllib/urllib2/urlparse imports.Aymeric Augustin
Lots of functions were moved. Use explicit imports in all cases to keey it easy to identify where the functions come from.
2012-07-22[py3] Replaced unicode/str by six.text_type/bytes.Aymeric Augustin