Commit graph

171 commits

Author SHA1 Message Date
Laura Klünder
f94be40470 add I18nField and replace the title JSONField with it 2017-11-30 00:43:39 +01:00
Laura Klünder
ddd87d2523 always describe from the viewpoint of the request and save queries 2017-11-28 00:16:43 +01:00
Laura Klünder
1ac5d554f2 use only can_describe=True locations to describe routes 2017-11-27 23:38:55 +01:00
Laura Klünder
31297ac39a fix include_type 2017-11-27 15:44:22 +01:00
Laura Klünder
cd27a6a099 only link to locations that can be searched 2017-11-22 20:50:34 +01:00
Laura Klünder
ec18cc7365 display links in location details 2017-11-22 19:04:29 +01:00
Laura Klünder
494c68e08a improve field display description 2017-11-22 18:23:08 +01:00
Laura Klünder
8602f4f39e stop deferring Level.render_data, this field does no exist any more 2017-11-16 03:03:18 +01:00
Laura Klünder
949b88389e add Location.details_display() 2017-11-02 13:35:58 +01:00
Laura Klünder
e6b6db1c7c add location display endpoint 2017-11-01 15:55:59 +01:00
Laura Klünder
620323b808 export entire location query logic into mapdata.utils.locations and cache 2017-10-31 15:22:12 +01:00
Laura Klünder
be2a81f806 move complicated Location API Queryset into LocationSlug 2017-10-31 13:25:42 +01:00
Laura Klünder
5fe03c4c8e add simple_geometry to location api 2017-10-28 21:36:52 +02:00
Laura Klünder
f83b77ed8b improve location api caching again and improve subtitles/descriptions 2017-10-28 20:50:02 +02:00
Laura Klünder
8beb6f9e8b better subtitles for location groups and more caching in query set 2017-10-28 20:30:27 +02:00
Laura Klünder
966b554169 locationgroups always on top 2017-10-28 20:06:44 +02:00
Laura Klünder
be97ed6a47 add LocationGroup.subtitle 2017-10-28 19:49:28 +02:00
Laura Klünder
c35d833640 order locations by relevance 2017-10-28 13:31:12 +02:00
Laura Klünder
1db9db542f fix register_changed_geometries on LocationGroup and LocationGroupCategory 2017-10-28 13:04:46 +02:00
Laura Klünder
ef340c5193 defer Level.render_data when querying by locationslug 2017-10-27 16:00:54 +02:00
Laura Klünder
f99779e9de fix ?detailed-logic 2017-10-27 15:05:41 +02:00
Laura Klünder
879f550f84 fix subtitle logic 2017-10-27 15:03:38 +02:00
Laura Klünder
508a45b4c8 simplify subtitle logic 2017-10-27 14:51:26 +02:00
Laura Klünder
feb62bec39 check category_id, not category to avoid additional queries 2017-10-27 13:47:23 +02:00
Laura Klünder
25b478f227 add first subtitle code 2017-10-27 13:47:12 +02:00
Laura Klünder
5af314d282 register updated geometries for tile cache invalidation 2017-10-23 19:25:15 +02:00
Laura Klünder
8731fd5f11 color should be up to 32 characters, fix color migration 2017-09-16 14:19:01 +02:00
Laura Klünder
200603a1f0 fix changeset view with deleted location redirects & improve joins 2017-07-19 15:20:12 +02:00
Laura Klünder
20924b9845 remove property "public", add AccessRestriction model 2017-07-13 18:43:03 +02:00
Laura Klünder
25989836a3 move all background colors into location groups 2017-07-13 13:32:06 +02:00
Laura Klünder
65433894ac remove references to compiled_room and compiled_area 2017-07-11 19:05:23 +02:00
Laura Klünder
2fa482d9fd get_color() only allow groups that are allowed for this model 2017-07-11 19:02:33 +02:00
Laura Klünder
268fb2f683 LocationGroup: always select_related('category') 2017-07-11 19:02:09 +02:00
Laura Klünder
8edb845deb serialization of single groups 2017-07-11 18:53:43 +02:00
Laura Klünder
ca237d7884 remove compiled_room and compiled_area, create location group categories 2017-07-11 18:01:48 +02:00
Laura Klünder
5d336d218a order LocationGroups by their category first 2017-07-11 17:41:16 +02:00
Laura Klünder
f48298ae1d add priority to LocationGroup and and default -priority ordering 2017-07-10 19:16:35 +02:00
Laura Klünder
2d3d67403c add single, allow_* and priority to LocationGroupCategory 2017-07-10 18:55:35 +02:00
Laura Klünder
3762ebf37d show group categories in api 2017-07-10 16:30:38 +02:00
Laura Klünder
6a6af47528 Edit LocationGroupCategory objects in Editor 2017-07-10 14:10:48 +02:00
Laura Klünder
4a58c1afab create LocationGroupCategory 2017-07-10 13:54:33 +02:00
Laura Klünder
52c64b0798 fix typo 2017-07-10 13:04:02 +02:00
Laura Klünder
358f900cdc created TitledMixin 2017-07-10 13:01:35 +02:00
Laura Klünder
3dfa4b4956 make slug and titles non-mandatory 2017-07-08 16:50:37 +02:00
Laura Klünder
f2913dd8ac rename Point to POI 2017-07-08 16:29:12 +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
4d544610e5 only prefetch groups if detailed serialization was queried 2017-06-22 19:53:25 +02:00
Laura Klünder
03d40add64 user get_submodels everywhere 2017-06-22 19:27:51 +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
279d9bab52 auto prefetch_related on LocationSlug 2017-06-18 18:42:30 +02:00