Commit graph

1316 commits

Author SHA1 Message Date
Laura Klünder
fe86e62e98 rename restore button to "restore original" 2017-06-25 17:54:35 +02:00
Laura Klünder
b85ecae12f only show restore button if can_edit 2017-06-25 17:51:11 +02:00
Laura Klünder
0b7f4d2a13 exclude deleted objects when filtering by related objects 2017-06-25 17:46:53 +02:00
Laura Klünder
9c006e076f only show the undo button in history for deleting stuff 2017-06-25 17:22:04 +02:00
Laura Klünder
d86b31d0e9 don't show undo button in history, this may be confusing 2017-06-25 17:20:54 +02:00
Laura Klünder
74adaf68ba fix css on button hover (tooltip) 2017-06-25 16:29:51 +02:00
Laura Klünder
4e79279241 show roblems and restore buttons in changeset history, too 2017-06-25 16:19:59 +02:00
Laura Klünder
79220c39f9 add has_no_effect check to changes and replace undo button icon 2017-06-25 16:12:57 +02:00
Laura Klünder
1d479c4eba allow undoing changes on created objects 2017-06-25 16:12:04 +02:00
Laura Klünder
289297294e validate changes and add button to restore them 2017-06-25 15:36:51 +02:00
Laura Klünder
cd7d131750 Change.field 2017-06-25 14:13:06 +02:00
Laura Klünder
1e0c122cfe only subtract holes from their respective spaces 2017-06-25 12:42:17 +02:00
Laura Klünder
2484535214 remove old code 2017-06-25 12:18:47 +02:00
Laura Klünder
ba3a912b6a add add_current_model and get_field_value to utils.py 2017-06-25 12:17:22 +02:00
Laura Klünder
7c5ad70781 object save needs to be atomic transaction so entire object is saved 2017-06-25 11:51:49 +02:00
Laura Klünder
7a2854317e fix error when creating new objects 2017-06-25 11:40:22 +02:00
Laura Klünder
aadb81c237 remove descriptor inspections everywhere 2017-06-25 11:35:01 +02:00
Laura Klünder
5ebc23b076 even less descriptor inspection 2017-06-25 11:31:24 +02:00
Laura Klünder
877f0cafad less descriptor inspecion, more field inspection 2017-06-25 10:31:43 +02:00
Laura Klünder
c3018ea6a9 defer geometry on level, too 2017-06-23 00:12:36 +02:00
Laura Klünder
857f0c0a09 improve performance a little bit by deferring geometry field in list 2017-06-23 00:09:28 +02:00
Laura Klünder
c24130f058 if something is changed back to original state, add a „restore“ change 2017-06-22 23:49:45 +02:00
Laura Klünder
f1854c8b66 don't store created pks as int 2017-06-22 22:47:22 +02:00
Laura Klünder
c6ed3105b0 fix attribute errors 2017-06-22 21:33:22 +02:00
Laura Klünder
dee040734c no need to cache this, we have select_related 2017-06-22 20:14:32 +02:00
Laura Klünder
e2d6879716 use get_child() before serializing locations 2017-06-22 20:10:17 +02:00
Laura Klünder
3419c9db54 new get_queryset() for LocationViewSet 2017-06-22 20:09:58 +02:00
Laura Klünder
ef7b5c973d fix querying on API /locations/search 2017-06-22 20:02:29 +02:00
Laura Klünder
15831b97ef get_submodels(SpecificLocation) 2017-06-22 19:58:08 +02:00
Laura Klünder
c4b3932e9b correctly filter on api /locations/ 2017-06-22 19:57:49 +02:00
Laura Klünder
4d544610e5 only prefetch groups if detailed serialization was queried 2017-06-22 19:53:25 +02:00
Laura Klünder
37d95700d3 improve querys on mapdata API /locations/ 2017-06-22 19:46:06 +02:00
Laura Klünder
f2e300415e fix wrong import 2017-06-22 19:30:37 +02:00
Laura Klünder
03d40add64 user get_submodels everywhere 2017-06-22 19:27:51 +02:00
Laura Klünder
bd7dcc647e remove unneded class variable 2017-06-22 18:49:04 +02:00
Laura Klünder
d5420e6d96 move get_submodels into mapdata.utils.models 2017-06-22 18:48:23 +02:00
Laura Klünder
d9f7210460 add type hint to get_submodels 2017-06-21 19:16:21 +02:00
Laura Klünder
7bab4e5064 fix type hinting in changeset.py 2017-06-21 19:13:23 +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
8306345856 document changeset 2017-06-21 18:00:12 +02:00
Laura Klünder
007189dafa remove REAL_CACHE_USED from settings.py 2017-06-21 17:12:17 +02:00
Laura Klünder
d055103e2d add support for redis in settings.py 2017-06-21 17:08:19 +02:00
Laura Klünder
42d78f1566 update some unimportant details in settings.y 2017-06-21 16:38:02 +02:00
Laura Klünder
8958d9e516 create editor utils.py 2017-06-21 14:19:13 +02:00
Laura Klünder
713a94e5f6 fix import error 2017-06-21 14:14:45 +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
260fc42af0 Revert "fix import errors"
This reverts commit aa1a1fee66858ceedd1d0c211c6d28e5ac5aa080.
2017-06-21 14:12:51 +02:00
Laura Klünder
b1569be54e fix import errors 2017-06-21 14:09:26 +02:00