Ryan Sears
1cd8de91fb
Truncate titles to 1000 characters before trying to save them in the DB. Fixes #128
2015-10-02 11:24:50 -07:00
Dave Hall
41894131d3
Removing Django 1.3 fallback
2015-08-18 09:54:43 +01:00
Dave Hall
6ef27251bb
Hopefully fixing MySQL tests
2015-06-01 11:23:01 +01:00
Dave Hall
30b59a00a9
Improving postgres query escaping
2015-06-01 11:01:50 +01:00
Dave Hall
4eeb9c73d5
Testing other database engines again.
2015-06-01 10:09:17 +01:00
Dave Hall
455a61f9d9
Adding in test for searching with leading apostrophe
2015-05-05 10:58:19 +01:00
Dave Hall
acf2100b6c
Fixing tests to work in newer django versions
2015-05-05 10:52:55 +01:00
Dave Hall
3c7f0abd4f
Fixing resolving fields that have related fields which are missing in the database
2015-04-24 13:08:36 +01:00
Philippe O. Wagner
d30c0baf38
fixes #104 translation errors when using buildwatson
2015-03-31 16:02:32 +02:00
Philippe O. Wagner
40c7d0b072
Rename list_registered_models_watson.py to listwatson.py
2015-03-18 09:58:25 +01:00
Philippe O. Wagner
4d52f4346f
Typo
2015-03-17 10:59:20 +01:00
Philippe O. Wagner
fd509a6beb
Wrong ident
2015-03-17 10:58:02 +01:00
Philippe O. Wagner
91d3f2040e
List all registred models (management command)
...
Exposed the ``watson.get_registered_models()`` function as management command for debugging purpose.
2015-03-17 10:57:43 +01:00
Carlton Gibson
d6cd1fce2d
Add app_label to SearchEntry
2015-02-17 11:02:42 +01:00
Carlton Gibson
9d6fc89516
Update import of GenericForeignKey
2015-02-17 10:59:53 +01:00
Carlton Gibson
20411df9e1
Update import_module reference.
2015-02-17 10:59:20 +01:00
Simon Fransson
77e97e8bd9
Using ContentType.objects.get_for_id rather than accessing for search_result.content_type, for caching benefits.
2015-02-10 17:59:09 +01:00
Simon Fransson
52794ac35d
Fixes #94 : Accessing app_label and model_name through content type rather than object.
...
As the object property is not always loaded by prefetch_related(), the `search_result_item` template tag will raise an AttributeError. But, as the object is essentially used for populating the string format params dict, it is possible to instead use the content type object (which appears to be available even when object is missing) for getting the `app_label` and `model_name` strings.
The only drawback is that the `obj` template variable may be `None` in some instances. It is not accessed in any standard tempaltes, and this issue would have caused an AttributeError earlier anyway.
2015-02-10 15:54:00 +01:00
Dave Hall
3f2b0e00d8
Unicoding more of the buildwatson command
2015-02-02 11:44:34 +00:00
Dave Hall
ebb9b1d704
Attempting to fix a unicode error
2015-01-20 11:21:49 +00:00
Omer Katz7941795
75cf8f5f03
Delete all stale records instead of only the last one.
2015-01-19 15:08:55 +02:00
Alex
3a5bca6f1a
Multiple backend cache
2015-01-05 15:21:26 +06:00
Alex
394491f211
Extension point for query formatting at MySQLSearchBackend
2015-01-05 14:04:17 +06:00
Dave Hall
55c64af6bd
Fixing some transaction handling in MySQL with schema alterations
2014-12-18 12:53:44 +00:00
Dave Hall
f51b15942a
Working on migrations for Django 1.7
2014-12-18 12:39:42 +00:00
Dave Hall
7b1606aa23
Working on Django 1.7 migrations.
2014-12-18 12:28:05 +00:00
Dave Hall
3c742715df
Adding in Django 1.7 migrations
2014-12-18 12:10:11 +00:00
Amin Dandache
95c8310bc2
filter backend_name included
2014-12-02 09:16:19 +01:00
Amin Dandache
6cff6c0de8
backend
...
specify
2014-12-01 13:34:15 +01:00
Dave Hall
5c22c17c6e
Attempting to fix issues with resolving nullable foreign keys.
2014-11-06 10:58:20 +00:00
Egor Orlov
4977a9b398
fixed django 1.8 get_query_set deprecation warning
2014-10-31 11:28:53 +03:00
gzing
765367913a
checks if the field passed on is a related manager
2014-10-10 14:07:17 +05:30
Dave Hall
b3d677db2b
Improved apostrophe escaping.
2014-09-17 10:12:42 +01:00
Matt Molyneaux
d4428fb5a9
Test nested contexts too
2014-07-25 21:23:43 +01:00
Matt Molyneaux
b3ff0947e8
Create a context manager that prevents updating of the search index
...
Given a model that has non-searchable fields that are updated often, this
context manager can prevent frivolous search index updates.
2014-07-24 20:25:25 +01:00
Matt Molyneaux
51eb47691a
get() should accept *args and **kwargs
...
Using groups (named or otherwise) in URL regex results in them being passed to
get() as arguments. This patch makes SearchMixin.get() accept them.
Without this patch, you get the following TypeError:
`get() got an unexpected keyword argument 'q'`
2014-05-31 21:58:08 +01:00
Dave Hall
9aec9f111a
Fixing MySQL punctuation
2014-02-21 13:30:57 +00:00
Dave Hall
c699b971a5
Ignoring punctuation in mysql
2014-02-21 13:26:32 +00:00
Dave Hall
50ad1d3240
Improving apostrophe escaping
2014-02-18 09:53:38 +00:00
Dave Hall
51b450568d
Merge branch 'master' of github.com:etianen/django-watson
2014-02-17 11:26:21 +00:00
Dave Hall
4ba1a72a3a
Adding support for searching with apostrophes
2014-02-17 11:23:24 +00:00
Jirka Vejrazka
a5f211e8ac
improved tests a bit
2014-01-13 23:32:34 +01:00
Jirka Vejrazka
8cda46cc5c
as requested/suggested, added ability to rebuild index for multiple models as well as a more robust way for selecting search engine
2014-01-13 23:27:15 +01:00
Jirka Vejrazka
96d80f0e96
Fix for CommandError (orig. syntax was not working on Python 3.x)
2014-01-12 16:20:37 +01:00
Jirka Vejrazka
c37a04261b
Added ability to build index for a single model (issue #31 )
2014-01-12 16:10:45 +01:00
Dave Hall
085d37fac7
Another attempt to fix test project MySQL collation settings
2013-12-03 19:30:19 +00:00
Dave Hall
b982b607d3
Another attempt to fix test project MySQL collation settings
2013-12-03 19:16:59 +00:00
Dave Hall
4708672757
Attempting to fix test project MySQL settings
2013-12-03 18:19:32 +00:00
Dave Hall
aca071912f
Enabling testing with multiple DBs
2013-12-03 17:19:22 +00:00
Dave Hall
193462afbf
Fixing unittest dependency for Python 2.6
2013-12-03 17:02:23 +00:00