Skip to content

Commit f716e7a

Browse files
committed
Bumped to v1.2.5!
1 parent 0347829 commit f716e7a

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
# The short X.Y version.
4848
version = '1.2'
4949
# The full version, including alpha/beta/rc tags.
50-
release = '1.2.5-beta'
50+
release = '1.2.5'
5151

5252
# The language for content autogenerated by Sphinx. Refer to documentation
5353
# for a list of supported languages.

haystack/__init__.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
__author__ = 'Daniel Lindsley'
14-
__version__ = (1, 2, 5, 'beta')
14+
__version__ = (1, 2, 5)
1515
__all__ = ['backend']
1616

1717

@@ -32,25 +32,25 @@
3232
def load_backend(backend_name=None):
3333
"""
3434
Loads a backend for interacting with the search engine.
35-
35+
3636
Optionally accepts a ``backend_name``. If provided, it should be a string
3737
of one of the following (built-in) options::
38-
38+
3939
* solr
4040
* xapian
4141
* whoosh
4242
* simple
4343
* dummy
44-
44+
4545
If you've implemented a custom backend, you can provide the "short" portion
4646
of the name (before the ``_backend``) and Haystack will attempt to load
4747
that backend instead.
48-
48+
4949
If not provided, the ``HAYSTACK_SEARCH_ENGINE`` setting is used.
5050
"""
5151
if not backend_name:
5252
backend_name = settings.HAYSTACK_SEARCH_ENGINE
53-
53+
5454
try:
5555
# Most of the time, the search backend will be one of the
5656
# backends that ships with haystack, so look there first.
@@ -67,8 +67,8 @@ def load_backend(backend_name=None):
6767
available_backends = [
6868
os.path.splitext(f)[0].split("_backend")[0] for f in os.listdir(backend_dir)
6969
if f != "base.py"
70-
and not f.startswith('_')
71-
and not f.startswith('.')
70+
and not f.startswith('_')
71+
and not f.startswith('.')
7272
and not f.endswith('.pyc')
7373
and not f.endswith('.pyo')
7474
]
@@ -86,18 +86,18 @@ def load_backend(backend_name=None):
8686
def autodiscover():
8787
"""
8888
Automatically build the site index.
89-
89+
9090
Again, almost exactly as django.contrib.admin does things, for consistency.
9191
"""
9292
import imp
9393
from django.conf import settings
94-
94+
9595
for app in settings.INSTALLED_APPS:
9696
# For each app, we need to look for an search_indexes.py inside that app's
9797
# package. We can't use os.path here -- recall that modules may be
9898
# imported different ways (think zip files) -- so we need to get
9999
# the app's __path__ and look for search_indexes.py on that path.
100-
100+
101101
# Step 1: find out the app's __path__ Import errors here will (and
102102
# should) bubble up, but a missing __path__ (which is legal, but weird)
103103
# fails silently -- apps that do weird things with __path__ might
@@ -106,7 +106,7 @@ def autodiscover():
106106
app_path = importlib.import_module(app).__path__
107107
except AttributeError:
108108
continue
109-
109+
110110
# Step 2: use imp.find_module to find the app's search_indexes.py. For some
111111
# reason imp.find_module raises ImportError if the app can't be found
112112
# but doesn't actually try to import the module. So skip this app if
@@ -115,7 +115,7 @@ def autodiscover():
115115
imp.find_module('search_indexes', app_path)
116116
except ImportError:
117117
continue
118-
118+
119119
# Step 3: import the app's search_index file. If this has errors we want them
120120
# to bubble up.
121121
importlib.import_module("%s.search_indexes" % app)
@@ -125,7 +125,7 @@ def handle_registrations(*args, **kwargs):
125125
"""
126126
Ensures that any configuration of the SearchSite(s) are handled when
127127
importing Haystack.
128-
128+
129129
This makes it possible for scripts/management commands that affect models
130130
but know nothing of Haystack to keep the index up to date.
131131
"""
@@ -135,17 +135,17 @@ def handle_registrations(*args, **kwargs):
135135
# apps generate import errors and requires extra work on the user's
136136
# part to make things work.
137137
return
138-
138+
139139
# This is a little dirty but we need to run the code that follows only
140140
# once, no matter how many times the main Haystack module is imported.
141141
# We'll look through the stack to see if we appear anywhere and simply
142142
# return if we do, allowing the original call to finish.
143143
stack = inspect.stack()
144-
144+
145145
for stack_info in stack[1:]:
146146
if 'handle_registrations' in stack_info[3]:
147147
return
148-
148+
149149
# Pull in the config file, causing any SearchSite initialization code to
150150
# execute.
151151
search_sites_conf = importlib.import_module(settings.HAYSTACK_SITECONF)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
setup(
66
name='django-haystack',
7-
version='1.2.5-beta',
7+
version='1.2.5',
88
description='Pluggable search for Django.',
99
author='Daniel Lindsley',
1010
author_email='[email protected]',

0 commit comments

Comments
 (0)