Jérôme Lafréchoux
25bc571f30
Merge pull request #1331 from bagerard/fix_unit_test
...
fixes in the test suite
2016-09-03 22:54:28 +02:00
Stefan Wojcik
16fea6f009
replace QuerySet.sum/average implementations with aggregate_sum/average + tweaks
2016-07-10 13:21:12 -07:00
Bastien Gérard
df9ed835ca
fixes in unit tests
2016-07-02 23:01:36 +02:00
Omer Katz
43d48b3feb
Merge pull request #1271 from maitbayev/master
...
Fixes unicode bug in EmbeddedDocumentListField
2016-04-17 09:15:23 +03:00
Shu Shen
3f30808104
Fix AttributeError when creating EmbeddedDocument
...
When an EmbeddedDocument is initialized with positional arguments, the
document attempts to read _auto_id_field attribute which may not exist
and would throw an AttributeError exception and fail the initialization.
This change and the test is based on the discussion in issue #681 and
PR #777 with a number of community members.
2016-04-07 15:18:33 -07:00
Neurostack
00430491ca
Fixed bug accessing ListField (BaseList) with negative indices
...
If you __setitem__ in BaseList with a negative index and then try to save this, you will get an error like: OperationError: Could not save document (cannot use the part (shape of signal.shape.-1) to traverse the element ({shape: [ 0 ]})). To fix this I rectify negative list indices in BaseList _mark_as_changed as the appropriate positive index. This fixes the above error.
2016-03-31 08:04:19 -06:00
Madiyar Aitbayev
109202329f
Handles unicode correctly EmbeddedDocumentListField
2016-03-31 02:33:13 +01:00
Omer Katz
7ad7b08bed
Merge pull request #1267 from wishtack/hotfix-map-field-unicode-key
...
Fix MapField in order to handle unicode keys.
2016-03-26 09:06:24 +03:00
Younes JAAIDI
4650e5e8fb
Fix MapField in order to handle unicode keys.
2016-03-25 12:42:00 +01:00
Gilb's
e34100bab4
Another attempt to fix random fails of test test_compound_key_dictfield
.
2016-03-18 23:43:23 +01:00
Gilb's
d9b3a9fb60
Use six integer types instead of explicit types, since six is now a dependency of the project.
2016-03-18 19:51:09 +01:00
Gilb's
39eec59c90
Fix test failing randomly because of concurrency.
2016-03-18 19:45:34 +01:00
Gilb's
d651d0d472
Fix tests and imports. issue #1253
2016-03-18 19:45:34 +01:00
Gilbert Gilb's
87a2358a65
Fix unused variable. issue #1253
2016-03-18 19:45:34 +01:00
Gilbert Gilb's
7cc1a4eba0
Fix long fields stored as int32 in Python 3. issue #1253
2016-03-18 19:45:34 +01:00
Omer Katz
c6cc0133b3
Merge pull request #1240 from gukoff/long_in_floatfield
...
Added support for long values in FloatFields
2016-03-18 10:24:53 +02:00
Omer Katz
6c2230a076
Merge pull request #1188 from DavidBord/fix-1187
...
fix-#1187: count on ListField of EmbeddedDocumentField fails
2016-03-10 12:18:20 +02:00
Konstantin Gukov
66b233eaea
Added the six module to test int/long support
2016-03-06 23:01:49 +05:00
Konstantin Gukov
fed58f3920
Added support for long values in FloatFields
2016-02-24 14:07:22 +05:00
Konstantin Gukov
ddedc1ee92
Fixed too broad exception clauses in the project
2016-02-23 23:50:45 +05:00
Emmanuel Leblond
9e9703183f
Add test for nested list in EmbeddedDocument
2016-02-19 02:16:37 +01:00
Emmanuel Leblond
adce9e6220
Raise OperationError in drop_collection if no collection is set
2016-02-19 01:58:15 +01:00
Emmanuel Leblond
c499133bbe
Add missing drop_collection in tests fields
2016-02-19 00:11:30 +01:00
Emmanuel Leblond
b320064418
Add signal_kwargs arg for save/delete/bulk insert
2016-02-09 14:28:55 +01:00
Emmanuel Leblond
a643933d16
Fix cascade delete mixing among collections
2016-01-30 11:59:55 +01:00
Omer Katz
2659ec5887
Merge pull request #1196 from nickptrvc/master
...
Fix pre_bulk_insert signal
2016-01-30 12:25:29 +02:00
Emmanuel Leblond
9f8327926d
Improve a bit queryset's test_elem_match
2016-01-28 18:18:51 +01:00
Bryan Bennett
6c9e1799c7
MongoEngine/mongoengine #1217 : Curry **kwargs through to_mongo on fields
2016-01-26 08:34:52 -05:00
Emmanuel Leblond
13897db6d3
Fix mongomock url prefix error during connection
2016-01-20 11:06:45 +01:00
Emmanuel Leblond
0284975f3f
Correct test_reload_of_non_strict_with_special_field_name for pymongo<2.9
2016-01-19 15:34:38 +01:00
Nick Pjetrovic
acc7448dc5
Fix pre_bulk_insert signal
2015-12-24 18:30:46 -05:00
David Bordeynik
35d3d3de72
fix-#1187: count on ListField of EmbeddedDocumentField fails
2015-12-15 22:27:53 +02:00
George Macon
00221e3410
Allow sparse compound indexes
2015-12-09 18:38:28 -05:00
RussellLuo
23f07fde5e
Add support for mocking MongoEngine based on mongomock
...
Using `mongomock://` scheme in URI enables the mocking. Fix #1045 .
2015-12-06 11:08:00 +08:00
Omer Katz
b42b760393
Merge branch 'fix-reloading-strict' of https://github.com/paularmand/mongoengine into fix-reloading-strict and bumped version.
...
# Conflicts:
# AUTHORS
2015-11-30 12:13:47 +02:00
Paul-Armand Verhaegen
6133f04841
Manual merge conflicts in AUTHORS
2015-11-27 23:55:55 +01:00
Paul-Armand Verhaegen
3c18f79ea4
Added test for reloading of strict with special fields #1156
2015-11-27 23:45:25 +01:00
srossiter
b7b28390df
Added upsert_one method on BaseQuerySet and modified test_upsert_one
2015-11-24 12:46:38 +00:00
Stefan Wojcik
a7aead5138
re-create the cursor object whenever we apply read_preference
2015-11-23 10:46:52 -08:00
Ashley Whetter
f96e68cd11
Made type inheritance a validation check for abstract references
2015-11-23 13:20:35 +00:00
Ashley Whetter
013227323d
ReferenceFields can now reference abstract Document types
...
A class that inherits from an abstract Document type is stored in the database
as a reference with a 'cls' field that is the class name of the document being
stored.
Fixes #837
2015-11-23 13:20:35 +00:00
George Macon
deb5677a57
Allow shard key to be in an embedded document ( #551 )
2015-11-19 17:14:45 -05:00
Omer Katz
d92d41cb05
Merge pull request #1131 from noirbizarre/fix-instance-back-references
...
Fix instance back references
2015-11-08 12:14:37 +02:00
Axel Haustant
9fe99979fe
Fix tests on Python 2.6 (assertIsNotNone does not exists)
2015-10-19 18:04:15 +02:00
Axel Haustant
959740a585
Fix false positive test on _instance
2015-10-19 16:33:40 +02:00
reallistic
159b082828
Recursively create mongo query for embeddeddocument elemMatch
2015-10-18 16:34:24 -07:00
Gang Li
3fe93968a6
update test case for: Please recall fix on: Saving document doesn't create new fields in existing collection #620 #1126
2015-10-18 00:19:36 -04:00
Gang Li
5bbfca45fa
Fixed: ListField minus index assignment does not work #1119
...
Add code to detect '-1' as a integer.
Normalize negative index to regular list index
Added list assignment test case
2015-10-12 10:34:26 -04:00
Emmanuel Leblond
903982e896
Merge pull request #1088 from touilleMan/bug-1058
...
Fix DictField with '_cls' field is converted to Document on access
2015-09-21 12:10:23 +02:00
Emmanuel Leblond
92b9cb5d43
Add drop_collection for test_subclass_field_query
2015-09-08 17:35:35 +02:00