Laura Klünder
d9f7210460
add type hint to get_submodels
2017-06-21 19:16:21 +02:00
Laura Klünder
0d310d337c
fix an error for model inheritance in _filter_values
2017-06-21 19:11:08 +02:00
Laura Klünder
9159e8f6b9
move querset_only methods to QuerySetWrapper
2017-06-21 19:06:36 +02:00
Laura Klünder
da543f8ee1
document wrappers
2017-06-21 19:01:00 +02:00
Laura Klünder
8958d9e516
create editor utils.py
2017-06-21 14:19:13 +02:00
Laura Klünder
676bf3389b
Revert "split up editor/wrappers.py"
...
This reverts commit b75edf3d58a45007f574ed919b0dd0550b129db8.
2017-06-21 14:12:58 +02:00
Laura Klünder
7d736665a4
split up editor/wrappers.py
2017-06-21 14:03:11 +02:00
Laura Klünder
7a9f4da4c1
remove everything about the editor from mapdata app
2017-06-21 12:47:28 +02:00
Laura Klünder
a2b993b27a
fix queries by foreign keys
2017-06-20 21:38:31 +02:00
Laura Klünder
8c74db77e2
more stuff to satisfy the linter
2017-06-20 18:00:46 +02:00
Laura Klünder
e65a90d9bd
fix several minor bugs with data types
2017-06-20 17:57:12 +02:00
Laura Klünder
1b41bafa4f
add redirecting slugs after saving
2017-06-18 22:46:50 +02:00
Laura Klünder
86de9dd053
enable overwriting wrapped qs cache to avoid _get_created_objects again
2017-06-18 06:17:46 +02:00
Laura Klünder
07c6c11373
redirectslug unique check and QuerySetWrapper.delete()
2017-06-18 05:14:02 +02:00
Laura Klünder
93c33ce605
filtering==, validate_unique and created model inheritance
2017-06-18 04:40:37 +02:00
Laura Klünder
2611e20284
values_list should be iterable multiple times
2017-06-18 01:19:41 +02:00
Laura Klünder
0be9100c0f
use is_created_pk everywhere
2017-06-18 01:04:07 +02:00
Laura Klünder
27af4d0dc5
remove unneeded code for manager.core_filters that slowed everything down
2017-06-18 00:50:50 +02:00
Laura Klünder
df880ca43b
always get queryset on manager (for filtering)
2017-06-18 00:45:06 +02:00
Laura Klünder
fb9479783f
return created objects in values_list
2017-06-18 00:00:29 +02:00
Laura Klünder
56284038c2
correct treatment of core_filters in Wrappers
2017-06-17 23:59:55 +02:00
Laura Klünder
c3fd098f05
fix Wrapped Queryset none()
2017-06-17 23:12:23 +02:00
Laura Klünder
44811460a1
fix prefetch_related about existing objects
2017-06-17 22:50:56 +02:00
Laura Klünder
2cb66cbd64
remove debug call that caused duplicate results
2017-06-17 22:45:44 +02:00
Laura Klünder
94b080c58d
remove debug output
2017-06-17 22:20:03 +02:00
Laura Klünder
1c5a786dca
get_prefetch_queryset and _apply_rel_filters
2017-06-17 22:18:18 +02:00
Laura Klünder
4325b1984d
raise error if there is unsupported extrastuff
2017-06-17 22:13:43 +02:00
Laura Klünder
ec18984875
fix m2m prefetch_related with newly created objects
2017-06-17 22:11:20 +02:00
Laura Klünder
f0d4d122da
fix changeset parsing on prefetch_related with manytomany
2017-06-17 21:50:15 +02:00
Laura Klünder
cb4867614c
fix reverse m2m __in filter
2017-06-17 20:05:33 +02:00
Laura Klünder
e7292692d5
add QuerySetWrapper support for reverse m2m __in filtering
2017-06-17 19:42:17 +02:00
Laura Klünder
f4700cc392
call to_python on updated values from the db
2017-06-16 22:22:34 +02:00
Laura Klünder
60551ff9b0
added existing m2ms were not correctly parsed
2017-06-16 20:47:06 +02:00
Laura Klünder
7bad785155
remove wrap_instances flag
2017-06-16 19:37:51 +02:00
Laura Klünder
0b38921b94
fix manytomany queries
2017-06-16 19:19:54 +02:00
Laura Klünder
9eb832b048
ManyToMany Managers should also look into prefetch cache
2017-06-16 18:42:54 +02:00
Laura Klünder
edfb083c61
fix get_color() on ModelInstanceWrapper
2017-06-16 18:38:41 +02:00
Laura Klünder
8fef2a81a9
reimplement wrapped prefetch_related
2017-06-16 18:19:52 +02:00
Laura Klünder
19856dfd8a
add created object to querysets (not yet fully working with select_related)
2017-06-16 16:34:27 +02:00
Laura Klünder
1d9564568b
use get_prep_value / to_python before serializing changed values
2017-06-16 13:08:26 +02:00
Laura Klünder
109174b1ba
better exception message
2017-06-16 12:07:18 +02:00
Laura Klünder
696c26cd70
add RelatedManagerWrapper.create
2017-06-16 12:06:52 +02:00
Laura Klünder
9ba14677c0
Revert commits about evaluating the queryset at the end.
...
This reverts commit a0a17c3630985fe960211708f5b90acf449f76b3.
This reverts commit 92122270e5815cbbf301a6e247c682a05717b19d.
This reverts commit c5d4c4d347e99be00258d55ec6338e3749084bbe.
This reverts commit c78876087d29511b6126132a213f4267249a869f.
2017-06-16 11:50:24 +02:00
Laura Klünder
e187e1ef67
when queueing a filter command cast iterables of __in values to tuples
2017-06-16 10:15:28 +02:00
Laura Klünder
8b8dd06660
execute query commands always to get exceptions if they are not valid
2017-06-15 18:29:09 +02:00
Laura Klünder
c6247aca19
cache executed WrappedQuerySets
2017-06-15 18:04:43 +02:00
Laura Klünder
52404c1cf1
query should only be evaluated at the end
2017-06-15 17:36:35 +02:00
Laura Klünder
13bd8f24af
remove debug statements
2017-06-15 12:52:28 +02:00
Laura Klünder
33af5c5444
add another NotImplementedError
2017-06-15 12:51:34 +02:00
Laura Klünder
dfdc348423
easier way to get the field of a ForwardManyToOneDescriptor
2017-06-15 01:41:08 +02:00