1
0
mirror of https://github.com/django/django.git synced 2024-11-18 07:26:04 +00:00
Commit Graph

27 Commits

Author SHA1 Message Date
Claude Paroz
13c3e5d5a0 Fixed #25995 -- Added an encoder option to JSONField
Thanks Berker Peksag and Tim Graham for the reviews.
2016-08-25 21:42:42 +02:00
Tim Graham
46a38307c2 Removed versionadded/changed annotations for 1.9. 2016-05-20 11:44:29 -04:00
anna
b28c60529b Fixed #26101 -- Allowed introspection of base_field.model in RangeField
Used the same test and fix as in #25867.
This required initializing base_field in RangeField.__init__,
not when setting the attribute.
2016-04-03 16:32:30 +02:00
Tim Graham
b3610f38fa Fixed #26345 -- Clarified which RangesFields always return a canonical form. 2016-03-12 12:54:16 -05:00
rowanv
a6ef025dfb Fixed #26124 -- Added missing code formatting to docs headers. 2016-02-01 10:42:05 -05:00
Elif T. Kus
bca9faae95 Fixed #26020 -- Normalized header stylings in docs. 2016-01-22 12:12:17 -05:00
Tim Graham
c432dd40bd Refs #25995 -- Documented that JSONField doesn't handle sophisticated serialization. 2016-01-08 19:00:56 -05:00
Tim Graham
b26d147259 Fixed #25949 -- Documented Psycopg2 version requirement for JSONField. 2015-12-19 07:24:59 -05:00
Dotan Agmon
a44dc200d0 Fixed incorrect examples in ArrayField docs. 2015-12-10 17:48:38 -05:00
Tim Graham
e0837f2cb1 Fixed #25508 -- Modified QuerySet.__repr__() to disambiguate it from a list. 2015-10-06 12:38:34 -04:00
Tim Graham
f93e7f5674 Fixed #24690 -- Added a warning about mutable defaults for ArrayField/JSONField. 2015-08-01 07:46:30 -04:00
Marc Tamlyn
7bda2d8ebc Fixed #24837 -- field__contained_by=Range
Provide `contained_by` lookups for the equivalent single valued fields
related to the range field types. This acts as the opposite direction to
rangefield__contains.

With thanks to schinckel for the idea and initial tests.
2015-06-04 19:29:59 +01:00
Tim Graham
c954931abd Refs #24811 -- Fixed syntax error in CREATE EXTENSION example query. 2015-05-31 06:24:08 -04:00
Marc Tamlyn
33ea472f69 Fixed #24604 -- Added JSONField to contrib.postgres. 2015-05-30 23:10:30 +01:00
Marc Tamlyn
74fe4428e5 Add HasAnyKeys lookup for HStoreField. 2015-05-30 21:39:45 +01:00
Tim Graham
9ef2615d49 Fixed #24811 -- Added details on installing PostgreSQL extensions. 2015-05-23 15:38:30 -04:00
Tim Graham
618bc4e653 Documented INSTALLED_APPS requirement for HStoreField. 2015-04-24 08:25:33 -04:00
Tim Graham
d3bf5e7b00 Fixed #24645 -- Documented use of HStoreExtension. 2015-04-16 07:22:01 -04:00
Tom Christie
737b184d91 Improved nested ArrayField example 2015-02-05 11:34:23 +01:00
Tim Graham
28de5cd4de Fixed spelling errors in docs. 2015-01-11 13:24:13 -05:00
Marc Tamlyn
48ad288679 Fixed #24001 -- Added range fields for PostgreSQL.
Added support for PostgreSQL range types to contrib.postgres.

- 5 new model fields
- 4 new form fields
- New validators
- Uses psycopg2's range type implementation in python
2015-01-10 16:18:19 +00:00
Marc Tamlyn
83daf53636 Fix minor typo in documentation. 2014-11-04 21:08:32 +00:00
Marc Tamlyn
36f514f065 Added HStoreField.
Thanks to `django-hstore` for inspiration in some areas, and many people
for reviews.
2014-11-04 09:26:40 +00:00
Tim Graham
4b57e203fe Fixed spelling in docs. 2014-05-27 19:46:48 -04:00
Marc Tamlyn
b625e861e5 Fix an error in a documented lookup example. 2014-05-26 14:44:50 +01:00
Marc Tamlyn
48348782e6 Added omitted documentation for ArrayField__len. 2014-05-22 13:50:13 +01:00
Marc Tamlyn
604162604b Added array field support for PostgreSQL.
The first part of django.contrib.postgres, including model and two form
fields for arrays of other data types.

This commit is formed of the following work:

    Add shell of postgres app and test handling.

    First draft of array fields.

    Use recursive deconstruction.

    Stop creating classes at lookup time.

    Add validation and size parameter.

    Add contained_by lookup.

    Add SimpleArrayField for forms.

    Add SplitArrayField (mainly for admin).

    Fix prepare_value for SimpleArrayField.

    Stop using MultiValueField and MultiWidget.

    They don't play nice with flexible sizes.

    Add basics of admin integration.

    Missing:
    - Tests
    - Fully working js

    Add reference document for django.contrib.postgres.fields.ArrayField.

    Various performance and style tweaks.

    Fix internal docs link, formalise code snippets.

    Remove the admin code for now.

    It needs a better way of handing JS widgets in the admin as a whole
    before it is easy to write. In particular there are serious issues
    involving DateTimePicker when used in an array.

    Add a test for nested array fields with different delimiters.

    This will be a documented pattern so having a test for it is useful.

    Add docs for SimpleArrayField.

    Add docs for SplitArrayField.

    Remove admin related code for now.

    definition -> description

    Fix typo.

    Py3 errors.

    Avoid using regexes where they're not needed.

    Allow passing tuples by the programmer.

    Add some more tests for multidimensional arrays.

    Also fix slicing as much as it can be fixed.

    Simplify SplitArrayWidget's data loading.

    If we aren't including the variable size one, we don't need to search
    like this.
2014-05-22 09:53:26 +01:00