summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2012-05-16Add missing semi-colonsTravis Swicegood
2012-05-16Remove `var` declaration---this variable is already delcared as an argumentTravis Swicegood
2012-05-16Make sure these functions don't bleed into the global scopeTravis Swicegood
This makes sure that all of these functions are assigned to variables assigned to the current scope, rather than the global scope. It also adds a trailing semi-colon to make sure various linters are happy.
2012-05-16Fixed #17896 -- Added file_hash method to CachedStaticFilesStorage to be ↵Jannis Leidel
able to customize the way the hashed name of a file is created. Thanks to mkai for the initial patch.
2012-05-15Fixed #18019 -- Use threaded runserver only when database supports it.Claude Paroz
2012-05-14Fixed #10890: added prev/next_week in the contextAymeric Augustin
of per-week date-based generic views. Thanks ee_lars for the report.
2012-05-12Replaced im_func and im_self by __func__ and __self__.Claude Paroz
The new names are Python 3 compatible.
2012-05-12Added missing relative imports in test files.Claude Paroz
2012-05-12Fixed #4102 -- Allow update of specific fields in model.save()Andrei Antoukh
Added the ability to update only part of the model's fields in model.save() by introducing a new kwarg "update_fields". Thanks to all the numerous reviewers and commenters in the ticket
2012-05-12Removed 'return false' in favor of preventDefault.Marc Neuwirth
Moved preventDefault to the top
2012-05-11Fixed typo in utils/archive.py docstringAdrian Holovaty
2012-05-11Fixed #18298 -- Marked error strings as translatable in CA localflavor.Tyler Ball
2012-05-10Fixed #17518 -- CSS glitch in StackedInline.Aymeric Augustin
Thanks sebastian for the report and patch.
2012-05-10Fixed #17798 -- Tweaked the CA localflavor.Aymeric Augustin
Thanks shelldweller.
2012-05-10Fixed #18093 -- Added a pk to AnonymousUser.Aymeric Augustin
2012-05-10Replaced foo.next() by next(foo).Claude Paroz
This new syntax for next() has been introduced in Python 2.6 and is compatible with Python 3.
2012-05-10Set the post process cache when finished instead of one by one.Jannis Leidel
This should prevent a race condition if running collectstatic is canceled or its cache is accessed from other processes, leaving the cache in a corrupt state.
2012-05-09Fix proxy model Query.remove_inherited_models()Anssi Kääriäinen
Fixed #18248 -- proxy models were added to included_inherited_models in sql.query.Query. The variable is meant to be used for multitable inheritance only. This mistake caused problems in situations where proxy model's query was reused.
2012-05-08Comment._get_userinfo is thread safe nowmaurizio
2012-05-07Fixed total_ordering for Python < 2.7.2Anssi Kääriäinen
The total_ordering in Python versions prior to 2.7.2 is buggy, and this caused infinite recursion for Field comparisons on those versions. Use the borrowed total_ordering for all Python versions prior to 2.7.2. The buggy total_ordering was introduced in commit 5cbfb48b92cb26a335f9c8c0f79d3390290103e2
2012-05-07Made model fields comparable to other objectsSimon Charette
Fixed #17851 -- Added __lt__ and @total_ordering to models.Field, made sure these work correctly on other objects than Field, too.
2012-05-07Imported zip from future_builtins instead of itertools.izip.Claude Paroz
In Python 3, itertools.izip is not available any more (behaviour integrated in standard zip).
2012-05-05Used io.BytesIO also for ContentFile.Claude Paroz
io.StringIO would force the content to be Unicode, which would be slightly backwards incompatible.
2012-05-05Replaced cStringIO.StringIO by io.BytesIO.Claude Paroz
Also replaced StringIO.StringIO by BytesIO in some other appropriate places. StringIO is not available in Python 3.
2012-05-05Fixed the syntax used for the Python repl examples in docs and docstrings.Alex Gaynor
2012-05-05Made more extensive usage of context managers with open.Claude Paroz
2012-05-03Inserted more simplefilter calls to be sure warnings are emitted.Claude Paroz
Thanks to Florian Apolloner for suggesting the patch.
2012-05-03Made warning assertions work with or without -Wall python switchClaude Paroz
2012-05-03Used catch_warnings instead of save/restore methods. Refs #17049.Claude Paroz
2012-05-03Replaced deprecated TestCase methods. Refs #17049.Claude Paroz
2012-05-03Fixed #18042 -- Advanced deprecation warnings.Aymeric Augustin
Thanks Ramiro for the patch.
2012-05-02Merge pull request #28 from akaariai/ticket_18163Karen Tracey
Ticket 18163 - use faster password hasher in tests.
2012-05-01Fixed #17742 -- Handled aware datetimes in DateFieldAymeric Augustin
Converted aware datetimes to the default time zone before using them in the context of a DateField.
2012-05-01Skip model validation when models are known good.Anssi Kääriäinen
In some situations Django calls model validation when the models are already known good. This is most visible in tests, which use flush and loaddata commands. This resulted in around 10% overhead when running tests under sqlite.
2012-04-30Ensured tests pass using custom PASSWORD_HASHERS.Anssi Kääriäinen
2012-04-30Reset password hashers cache on settings_changed.Anssi Kääriäinen
2012-04-30Fixed #4746 -- Allowed spaces around filter separator.Aymeric Augustin
2012-04-30Fixed #18217 -- Time zone support in generic viewsAymeric Augustin
Introduced a distinct implementation depending on the type of the date field (DateField or DateTimeField), and applied appropriate conversions is the latter case, when time zone support is enabled.
2012-04-30Replaced print statement by print function (forward compatibility syntax).Claude Paroz
2012-04-30Merge branch 'master' of github.com:django/djangoAymeric Augustin
2012-04-30Fixed SortedDict.__copy__()Anssi Kääriäinen
Fixed #18175 -- Calling SortedDict.__copy__() resulted in changes to the original dictionary. The reason was likely related to subclassing dict. Thanks to linovia for report and patch.
2012-04-30Fix a typo in a comment.Alex Gaynor
2012-04-30Simplified date-based generic views.Aymeric Augustin
Removed a confusing helper function that was confusing -- it used last_day to store the first day of the next month.
2012-04-30Made get_indexes() consistent across backends.Anssi Kääriäinen
Fixed #15933, #18082 -- the get_indexes() method introspection was done inconsitently depending on the backend. For example SQLite included all the columns in the table in the returned dictionary, while MySQL introspected also multicolumn indexes. All backends return now consistenly only single-column indexes. Thanks to andi for the MySQL report, and ikelly for comments on Oracle's get_indexes() changes.
2012-04-30Fixed #18240 -- Made admindocs tests pass even when language is not en.Claude Paroz
Thanks miguel.ventura@gmail.com for the report and the patch.
2012-04-29Switch a datastructure internal to the ORM to be a set, instead of a dictionary.Alex Gaynor
2012-04-29Fixed #17644 -- Changed Query.alias_map to use namedtuplesAdrian Holovaty
This makes the code easier to understand and may even have a benefit in memory usage (namedtuples instead of dicts). Thanks, lrekucki and akaariai
2012-04-29Fixed #18013 -- Use the new 'as' syntax for exceptions.Claude Paroz
Thanks Clueless for the initial patch. Note that unittest has been purposely left out (external package only used by Python 2.6).
2012-04-29Fixed #18220 -- Removed the CACHE_BACKEND setting, as per official ↵Claude Paroz
deprecation timeline. Thanks Ramiro Morales for the review.
2012-04-29Moved version code out of __init__.py.Adrian Holovaty
Moved everything except VERSION and a get_version() stub out of the top-level __init__.py, so that we're not importing all that stuff all the time. And because it's cleaner.