Ross Lawley
3f301f6b0f
Finishing touches to where implementation - thanks to dcrosta
...
Refs #242
2011-08-16 10:32:21 +01:00
Ross Lawley
89ad7ef1ab
Merge branch 'dev' into feature/where
2011-08-16 09:54:56 +01:00
Ross Lawley
c4db3b6cf2
Merge pull request #247 from spantaleev/double-save-fix
...
Prevent double saving when doing a forced insert.
2011-08-15 02:28:59 -07:00
Ross Lawley
2b1eb620fc
Merge pull request #253 from wpjunior/listreferences
...
Dereference fails (allow_inheritance = False)
2011-08-15 02:27:40 -07:00
Ross Lawley
048826f6f0
Merge pull request #252 from wpjunior/djangotranslations
...
Django translation for auth.py
2011-08-15 01:15:28 -07:00
Ross Lawley
3f3f93b0fa
Fixing delta bug for dict fields
2011-07-29 15:48:29 +01:00
Ross Lawley
e3cbeb9df0
Merge pull request #243 from wpjunior/sequencefield_fixes
...
Sequencefield fixes
2011-07-22 06:34:43 -07:00
Ross Lawley
ac72722e57
Fixing bug setting a value that equates to false
2011-07-22 13:51:11 +01:00
Ross Lawley
72aa191e70
Stop abstract classes being used in the document_registry
2011-07-20 11:58:13 +01:00
Ross Lawley
0d1804461d
Updated handling setting of object managers and inheritance
2011-07-19 22:12:09 +01:00
Ross Lawley
5834fa840c
Tweaked SequenceField so that it doesn't increment on creation.
...
[refs #238 ]
2011-07-19 16:51:26 +01:00
Ross Lawley
5eb895b952
Merge remote branch 'origin/dev' into feature/sequence_field
2011-07-19 16:04:42 +01:00
Ross Lawley
d5fb3a9167
Merge pull request #240 from wpjunior/db_field_fixes
...
Awesome - scarily similar to the patch I started!
2011-07-19 07:37:57 -07:00
Ross Lawley
bbd3a6961e
Fixed typo in tutorial
...
[closes #235 ] Thanks @mulka
2011-07-18 08:35:29 +01:00
Ross Lawley
6eb0387a78
Merge pull request #234 from dcrosta/get-or-404
...
Get or 404 now handles validation errors as well.
Thanks @dcrosta
2011-07-14 22:38:46 -07:00
Ross Lawley
72995a4b3e
Fixed changing default values to False for embedded items
2011-07-13 16:06:40 +01:00
Ross Lawley
7395ce5b22
Updating changelog
2011-07-13 16:05:17 +01:00
Ross Lawley
a4c197a83c
Added update() convenience method to a document
...
Thanks to @dcrosta for the initial code
[closes #229 ]
2011-07-13 14:15:46 +01:00
Ross Lawley
7a3412dc13
Added helper for reseting the index cache
2011-07-13 09:54:41 +01:00
Ross Lawley
e079924632
Added extra test for update / update_one
...
[closes #231 ]
2011-07-12 14:43:21 +01:00
Ross Lawley
cace665858
_delta checking didn't handle db_field_names at all
...
Fixed and added tests, thanks to @wpjunior and @iapain for initial test cases
[fixes #226 ]
2011-07-12 10:20:36 +01:00
Ross Lawley
2a8d001213
Improvements to indexes and efficiencies
...
Thanks to @dcrosta for the patches
closes #225
2011-07-11 17:02:23 +01:00
Ross Lawley
a2b0266e01
Merge branch 'dev' into indexpatches
2011-07-11 16:58:17 +01:00
Ross Lawley
1452d3fac5
Fixed item_frequency methods to handle null values
...
[fixes #216 ]
2011-07-11 16:50:31 +01:00
Ross Lawley
031c507fde
Merge pull request #224 from dcrosta/user-unique-index
...
User unique index - thanks to @dcrosta
2011-07-11 08:08:52 -07:00
Ross Lawley
0fb629e24c
Added cascading deletes
...
Also ensured that unsetting works when not the default value of a field
2011-07-11 16:01:48 +01:00
Ross Lawley
147e33c3ca
Merge remote branch 'origin/dev' into dev
2011-07-11 09:23:38 +01:00
Ross Lawley
dc5a613bc7
Fixes conversion of null genericreferences in querysets
...
closes #211
2011-07-11 09:19:27 +01:00
Ross Lawley
16390c1dec
Merge pull request #217 from farazdagi/fix/typo-in-quering-db-docs
...
Fix/typo in quering db docs
2011-07-02 12:18:32 -07:00
Ross Lawley
556e620c7a
Fixes recursion error when resetting changed fields
...
Fixes #214 - thanks to wpjunior for the test case
2011-07-01 08:44:46 +01:00
Ross Lawley
8e1d701c27
Fixed infinite recursion bug in _geo_indices()
...
Fixes #213 Thanks to joshink for the bug report
2011-06-30 10:32:05 +01:00
Ross Lawley
d51d95a28e
Merge pull request #212 from zakj/dev
...
Added GridFSProxy.__nonzero__ - thanks to zakj for the fix
2011-06-30 01:57:00 -07:00
Ross Lawley
84e611b91e
Tweak to dereferencing
2011-06-27 16:46:39 +01:00
Ross Lawley
4036e9fe34
Moved private method to make class more readable
2011-06-27 13:17:41 +01:00
Ross Lawley
b039a2293f
Updated documentation about dereferencing
...
Refs #206
2011-06-27 12:42:26 +01:00
Ross Lawley
87f486c4f1
Added select_related() and refactored dereferencing
...
Added a dereference class to handle both select_related
/ recursive dereferencing and fetching dereference.
Refs #206
2011-06-27 12:25:49 +01:00
Ross Lawley
14be7ba2e2
Added support for the $ positional operator
...
closes #205
2011-06-21 14:50:11 +01:00
Ross Lawley
09c32a63ce
Fixes bug with appending post save - due to lists not being reset
2011-06-21 12:34:14 +01:00
Ross Lawley
08ba51f714
Updated geo_index checking to be recursive
...
Fixes #127 - Embedded Documents can declare geo indexes and have
them created automatically
2011-06-20 15:41:23 +01:00
Ross Lawley
e3cd398f70
Changed default collection naming
...
Also added upgrade text
2011-06-20 14:00:06 +01:00
Ross Lawley
f41c5217c6
Added a cleaner way to get collection names
...
Also handles dynamic collection naming - refs #180 .
2011-06-20 11:48:12 +01:00
Ross Lawley
1b0323bc22
Added document mixin support
...
For extendable / reusable documents
Fixes #204
2011-06-20 09:44:53 +01:00
Ross Lawley
e04e5f42ef
Added test inheriting document from another file works
...
Closes #28
2011-06-20 08:46:40 +01:00
Ross Lawley
c24bc77c17
Fixes depreciation warnings in Django Auth.
...
Closes #156
2011-06-17 15:07:27 +01:00
Ross Lawley
99f923e27f
Fixed queryset repr mid iteration
...
Closes #144
2011-06-17 15:04:07 +01:00
Ross Lawley
f3d265bbe0
Added to_dbref
...
Thanks to Ankhbayar for the initial code
Closes #202
2011-06-17 14:23:40 +01:00
Ross Lawley
5e7efcc8c2
Added 'hint' support, telling Mongo the proper index to use for the query.
...
Judicious use of hints can greatly improve query performance. When doing a query
on multiple fields (at least one of which is indexed) pass the indexed field as
a hint to the query. Hinting will not do anything if the corresponding index
does not exist. The last hint applied to this cursor takes precedence over all
others.
Closes #203
2011-06-17 12:43:28 +01:00
Ross Lawley
62c8823e64
Fixing requirements
...
Test requirements are not install requirements!
2011-06-17 11:39:53 +01:00
Ross Lawley
5cc9188c5b
Improved validation of (Generic)Reference fields
2011-06-16 15:25:09 +01:00
Ross Lawley
5e8604967c
Fixes for django Q query rendering bug
...
Ensures that the QNodes haven't already been processed
Fixes #185
2011-06-16 15:00:10 +01:00
Ross Lawley
cae3f3eeff
Fixes pickling issue with choice fields
...
Removes the dynamic __get_field_display partials before pickling
2011-06-16 12:50:45 +01:00
Ross Lawley
22a7ee5885
Handle old named (referenced) docs
...
Refs #199
2011-06-16 09:56:54 +01:00
Ross Lawley
658b85d327
Inconsistent setting of '_cls' broke inherited document referencing
...
Fixes #199
2011-06-15 16:51:49 +01:00
Ross Lawley
967e72723b
Added note to item_frequencies method.
...
Current implementation is relatively simple, for complex schemas
the user will have to write their own map reduce.
2011-06-15 14:55:38 +01:00
Ross Lawley
5411cc5573
Updated changelog
2011-06-15 11:30:10 +01:00
Ross Lawley
ffb3e8b7b9
Added help_text and verbose_name to fields
...
closes #192
2011-06-15 11:28:41 +01:00
Ross Lawley
94cad89e32
Fixes to item_frequencies - now handles path lookups
...
fixes #194
2011-06-15 11:22:27 +01:00
Ross Lawley
0338ac17b1
Fixes multiple assignment issue preventing saves
...
Thanks to @wpjunior for the ticket and testcase
Also fixed bug in BaseList
fixes #195
2011-06-15 08:57:46 +01:00
Ross Lawley
cb1dfdfac6
Fixes to signals
...
The sender is the class of the document not the instance - easier to
hook into
2011-06-14 16:56:04 +01:00
Ross Lawley
576db9ca88
Fixes DateTimeField handling of date objects.
...
Fixes #191
2011-06-14 15:09:03 +01:00
Ross Lawley
4c2b83d9ca
Remove errant __delete__ method
2011-06-14 15:00:26 +01:00
Ross Lawley
7cb24446ec
Merge remote branch 'origin/dev' into dev
2011-06-14 14:36:30 +01:00
Ross Lawley
0ed79a839d
Added delta tracking to documents.
...
All saves on exisiting items do set / unset operations only on changed fields.
* Note lists and dicts generally do set operations for things like pop() del[key]
As there is no easy map to unset and explicitly matches the new list / dict
fixes #18
2011-06-14 14:35:38 +01:00
Ross Lawley
e518c51de3
Merge pull request #193 from colinhowe/dev
...
Improved Validation warnings - Thanks Colin Howe
2011-06-13 12:52:31 -07:00
Ross Lawley
ea35fb1c54
More robust _present_fields additions
2011-06-13 12:49:09 +01:00
Ross Lawley
7b29378319
Fixes issue converting to mongo
2011-06-13 12:40:12 +01:00
Ross Lawley
fd7f882011
Save no longer tramples over documents now sets or unsets explicit fields.
...
Fixes #146 , refs #18
Thanks @zhangcheng for the initial code
2011-06-09 16:09:06 +01:00
Ross Lawley
fb09fde209
Updated changelog
2011-06-09 14:26:52 +01:00
Ross Lawley
b2848b8519
Added ComplexDateTimeField
...
Thanks to @pelletier for the code.
Refs #187
2011-06-09 14:20:21 +01:00
Ross Lawley
417bb1b35d
Added regression test for #185
2011-06-09 12:15:36 +01:00
Ross Lawley
199b4eb860
Added django_tests and regression test for order_by
...
Refs #190
2011-06-09 12:08:37 +01:00
Ross Lawley
a66417e9d0
pep8 update
2011-06-09 11:31:47 +01:00
Ross Lawley
b9255f73c3
Updated docs
2011-06-09 11:28:57 +01:00
Ross Lawley
4b9bacf731
Added ComplexBaseField
...
* Handles the efficient lazy dereferencing of DBrefs.
* Handles complex nested values in ListFields and DictFields
* Allows for both strictly declared ListFields and DictFields where the embedded
value must be of a field type or no restrictions where the values can be a mix
of field types / values.
* Handles DBrefences of documents where allow_inheritance = False.
2011-06-09 11:25:24 +01:00
Ross Lawley
602d7dad00
Improvements to Abstract Base Classes
...
Added test example highlighting what to do to migrate a class from
complex (allows inheritance) to simple.
2011-06-08 17:10:26 +01:00
Ross Lawley
d32dd9ff62
Added _get_FIELD_display() for handy choice field display lookups
...
closes #188
2011-06-08 13:07:08 +01:00
Ross Lawley
28b7ef2304
Merge remote branch 'origin/dev' into dev
2011-06-08 13:06:47 +01:00
Ross Lawley
6dc2672dba
Updated changelog
2011-06-08 13:03:42 +01:00
Ross Lawley
9a949984ee
Merge pull request #189 from colinhowe/dev-notypesindex
...
Thanks @colinhowe!
2011-06-08 04:40:54 -07:00
Ross Lawley
3c88faa889
Updated slave_okay syntax
...
Now inline with .timeout() and .snapshot().
Made them chainable - so its easier to use and added tests for cursor_args
2011-06-08 12:06:26 +01:00
Ross Lawley
d15f5ccbf4
Added _slave_okay to clone
2011-06-08 10:41:08 +01:00
Ross Lawley
cfcd77b193
Added tests displaying datetime behaviour.
...
Updated datetimefield documentation
2011-06-08 10:33:56 +01:00
Ross Lawley
525c25b9f6
Merge branch 'master' into dev
2011-06-07 15:15:06 +01:00
Ross Lawley
c059ad47f2
Updated django docs refs #186
2011-06-07 15:14:41 +01:00
Ross Lawley
48fd6c1344
Merge remote branch 'origin/master' into dev
2011-06-07 14:38:04 +01:00
Ross Lawley
1ee50922d9
Merge pull request #186 from kuno/master
...
fixed import path typo in django document
2011-06-07 06:37:34 -07:00
Ross Lawley
711db45c02
Changelist updated
2011-06-06 14:36:44 +01:00
Ross Lawley
55e20bda12
Added slave_okay syntax to querysets.
...
* slave_okay (optional): if True, allows this query to be run against a replica secondary.
2011-06-06 14:35:46 +01:00
Ross Lawley
56f00a64d7
Added bulk insert method.
...
Updated changelog and added tests / query_counter tests
2011-06-06 12:37:06 +01:00
Ross Lawley
8553022b0e
Merge branch 'dev' into feature/dev-indexes
2011-06-06 11:40:21 +01:00
Ross Lawley
74b5043ef9
Added signals documentation
2011-06-06 11:39:58 +01:00
Ross Lawley
0e45078116
Added Blinker signal support
2011-06-06 11:34:43 +01:00
Ross Lawley
7e87ed79ab
Merge branch 'feature/blinker_signals' into dev
2011-06-06 11:10:12 +01:00
Ross Lawley
7312db5c25
Updated docs / authors.
...
Thanks @jorgebastida for the awesome query_counter test context manager.
2011-06-06 11:07:27 +01:00
Ross Lawley
ec7effa0ef
Added DereferenceBaseField class
...
Handles the lazy dereferencing of all items in a list / dict.
Improves query efficiency by an order of magnitude.
2011-06-06 11:04:06 +01:00
Ross Lawley
5d778648e6
Inital tests for dereferencing improvements
2011-05-27 11:33:40 +01:00
Ross Lawley
c903af032f
Added inline_map_reduce functionality
...
Also added map_reduce method for calculating item_frequencies
Closes #183
2011-05-26 15:44:43 +01:00
Ross Lawley
9dd3504765
Updated changelog
2011-05-26 11:56:56 +01:00
Ross Lawley
97a1310344
Tweakin test
2011-05-26 11:11:00 +01:00
Ross Lawley
5ab13518db
Added test confirming order_by reference field doesnt work
2011-05-25 13:50:52 +01:00