Commit graph

66 commits

Author SHA1 Message Date
j
06e89c264b Port EntityLink backend 2018-09-18 11:21:11 +02:00
j
6296be870b use get_user_model 2018-07-29 21:12:56 +01:00
j
1bac062a50 use postgres json field 2018-07-09 15:22:12 +02:00
j
dbf740e55e use .editorconfig 2018-06-19 08:33:26 +02:00
j
3920541bb8 sort documents by title, fall back to created 2018-02-21 12:44:35 +05:30
j
88d47eba6b don't decode str 2018-02-21 08:52:22 +05:30
j
1a3edf4f93 sort by document name 2018-02-15 15:57:12 +01:00
j
f0a4aba751 use python_2_unicode_compatible 2017-03-03 08:56:35 +01:00
j
e1f35b1ec8 new documents section 2016-10-30 18:23:16 +01:00
j
1468ddbecb towards supporting python 2 and 3
- use absolute_imports
- make use of six.moves
- use exec instead of execfile
- use list(dict) instead if dict.keys()
2016-08-25 18:34:36 +02:00
j
c7157d5001 only decode ids for found positions
merge document.view.get_positions into item.utils.get_positions
add flag to decode id before looking up in ids

Followup to 09ebbc9cc6
2016-06-30 16:18:07 +02:00
j
e9863c238e always use get_operator, avoid case-insensitive match if possible 2016-06-30 11:28:09 +02:00
e29ea230fb
Add migration for Document.documentproperties ref
This should have been included with a8dcbbb, which changed the
related_name to access DocumentProperties from Document. (There's no
actual change to the database.)
2016-05-04 16:55:11 +01:00
aa0fbc9d4a
Entity.json: get document ids from join table
This is a bit quicker because it's just a lookup in a single table, not
a join.
2016-04-28 14:15:12 +01:00
a8dcbbbe89 Include DocumentProperties.data in Document.json() 2016-03-05 15:07:47 +05:30
a55cbcfb9f DocumentProperties: add data field 2016-03-05 15:07:47 +05:30
0c98cd080e Entity.alternativeNames: default to () not [] (fixes #2896)
Otherwise this:

    self.name_find = '||' + '||'.join((self.name,) + self.alternativeNames) + '||'
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

fails because () + [] is an error. I guess this must have been
introduced by the DictField/TupleField rewrite.

Without this fix, it is impossible to create a new entity.

Basically the same logic is used for Event and Place too so I've made
the same change to those, and, in passing, fix another copy of the bug
fixed for Entity.name_find in fe7f961.
2016-03-04 17:11:36 +00:00
8c23bdff6d Implement DocumentProperties.__unicode__ 2016-03-04 12:41:41 +00:00
c6f9f87c8e Fix autocompleteSort with multiple keys (fixes #2893)
QuerySet.order_by() takes each key as a separate argument, not as a
single comma-separated string.
2016-03-03 18:15:37 +05:30
j
051a3578b4 inline django 1.9 version of ox.django 2016-02-20 10:41:23 +00:00
j
4219246909 db migration 2016-02-20 15:15:01 +05:30
j
1cc795995d user.get_profile()->user.profile 2016-02-19 22:06:11 +05:30
j
e22cc432b3 use transaction.atomic 2016-02-19 21:55:09 +05:30
j
e738503380 remove old migrations 2016-02-19 15:17:18 +00:00
47d8d67c3d Allow 'query' to be omitted from find*() (fixes #2883)
I hit this in findDocuments() so thought I'd fix them all.
2016-02-15 14:58:50 +00:00
691b3fa934 Entity: only update annotations when name has changed (fixes #2877)
Just like ace0468 this doesn't exactly fix #2827, but it does reduce the
unnecessary work.
2016-02-05 19:03:16 +05:30
6008f3b44e findEntities: fix negated conditions, fixes #2876 2016-02-05 19:01:30 +05:30
ace04688f2 Entity.save(): update annotations async (fixes #2827, kinda) 2015-09-02 14:32:16 +02:00
j
83013bbe5e Update items when entities are renamed (fixes #2825) 2015-08-26 19:42:03 +02:00
j
9758b7d312 fail if entity is unknown 2015-06-24 16:41:49 +02:00
3ad9d4821b Fix findEntities( ... name == x ... ), fixes #2769 2015-05-20 12:30:31 +02:00
fe7f961ff6 Entity: fix name_find when alternativeNames is non-empty
Previously, given:

    name = "foo"
    alternativeNames = ("bar", "baz")

then:

    name_find = '||foobar||baz||'
2015-05-20 12:16:32 +02:00
514e1ad36d autocompleteEntities: fix lies in docstring 2015-04-30 22:49:31 +02:00
j
8abed26dc9 make sure alternative names are unique too, also fixes #2754 2015-04-23 17:20:00 +05:30
j
5b7b389661 ignore case checking for existing entities, check for alternative names too, migrate existing double entries, fixes #2754 2015-04-23 12:55:11 +02:00
j
9d3c50fcec ignore undefined entity data 2015-04-21 15:34:37 +05:30
j
2dc081b8aa store name, remove unused keys 2015-04-17 16:01:49 +01:00
j
10183a9f06 only create index in sqlfindindex not during migration 2015-04-17 11:34:44 +01:00
j
9cbf62267f split data migration into extra step 2015-04-17 11:26:56 +01:00
j
a869c7a89a extend findEntities to support entity keys and * 2015-04-17 11:17:12 +01:00
j
e851dcabfb entities are not links 2015-04-16 20:02:31 +00:00
j
c73ac10ed4 log addEntity in changelog 2015-04-14 19:15:59 +01:00
j
1ed91da4e0 fix import 2015-02-26 06:07:18 +00:00
j
deda6252f1 keep entity annotation find/sort values in sync with entities 2015-02-26 06:04:16 +00:00
j
ccfaa7db4a add entity/document relation 2015-02-13 11:06:09 +00:00
j
b5212f2662 add leading word matches, fixes #2663 2015-02-06 15:16:41 +05:30
j
ad8db3a293 return html value for entities 2015-02-06 15:11:19 +05:30
j
d492619be6 entity names are only unique by type 2015-02-06 12:42:19 +05:30
j
83393ee385 name must be unicode 2015-02-03 18:44:05 +01:00
rolux
3950213960 update api docs 2014-12-19 15:31:57 +00:00