Skip to content

Commit b93f459

Browse files
committed
Merge branch 'release/1.4.3'
2 parents 5ea3ecb + 3a4d7b3 commit b93f459

File tree

12 files changed

+33
-22
lines changed

12 files changed

+33
-22
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ env:
55
- TOX_ENV=py34-flake8
66
- TOX_ENV=py27-dj15
77
- TOX_ENV=py27-dj16
8-
- TOX_ENV=py32-dj15
9-
- TOX_ENV=py32-dj16
108
- TOX_ENV=py33-dj15
119
- TOX_ENV=py33-dj16
1210
- TOX_ENV=py27-dj17
@@ -15,6 +13,8 @@ env:
1513
- TOX_ENV=py34-dj17
1614
- TOX_ENV=py34-dj18
1715
- TOX_ENV=py34-dj19
16+
# - TOX_ENV=py35-dj18
17+
# - TOX_ENV=py35-dj19
1818
install:
1919
- pip install -r requirements-test.txt
2020
script:

CHANGELOG.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,20 @@
11
# Change Log
22

3-
## [1.4.2](https://github.com/crucialfelix/django-ajax-selects/tree/1.4.2) (2016-01-18)
3+
## [1.4.3](https://github.com/crucialfelix/django-ajax-selects/tree/1.4.3) (2016-03-13)
4+
[Full Changelog](https://github.com/crucialfelix/django-ajax-selects/compare/1.4.2...1.4.3)
5+
6+
**Closed issues:**
7+
8+
- Additional stacked inlines clear un-saved autocomplete fields [\#156](https://github.com/crucialfelix/django-ajax-selects/issues/156)
9+
- support request: ManyToOneRel doesn't have expected attributes [\#154](https://github.com/crucialfelix/django-ajax-selects/issues/154)
410

11+
**Merged pull requests:**
12+
13+
- Stop using deprecated \_meta api. [\#160](https://github.com/crucialfelix/django-ajax-selects/pull/160) ([kramarz](https://github.com/kramarz))
14+
- Fixed file name in documentation for custom templates. [\#158](https://github.com/crucialfelix/django-ajax-selects/pull/158) ([sebslomski](https://github.com/sebslomski))
15+
- Fixes re-initialization upon adding inlines [\#157](https://github.com/crucialfelix/django-ajax-selects/pull/157) ([funkyfuture](https://github.com/funkyfuture))
16+
17+
## [1.4.2](https://github.com/crucialfelix/django-ajax-selects/tree/1.4.2) (2016-01-18)
518
[Full Changelog](https://github.com/crucialfelix/django-ajax-selects/compare/1.4.1...1.4.2)
619

720
**Fixed bugs:**
@@ -19,7 +32,7 @@
1932

2033
**Closed issues:**
2134

22-
- Templates not included in pypi 1.4.0 package [\#141](https://github.com/crucialfelix/django-ajax-selects/issues/141)
35+
- Templates not included in pypi1.4.0 package [\#141](https://github.com/crucialfelix/django-ajax-selects/issues/141)
2336
- Documentation seems to be broken on RTD [\#140](https://github.com/crucialfelix/django-ajax-selects/issues/140)
2437

2538
## [1.4.0](https://github.com/crucialfelix/django-ajax-selects/tree/1.4.0) (2015-11-07)
@@ -201,4 +214,4 @@
201214
## [1.1.0](https://github.com/crucialfelix/django-ajax-selects/tree/1.1.0) (2010-03-06)
202215

203216

204-
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
217+
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ Compatibility
7777
-------------
7878

7979
- Django >=1.5, <=1.9
80-
- Python >=2.7, <=3.4
80+
- Python >=2.7, 3.3-3.5
81+
8182

8283
Contributors
8384
------------

ajax_select/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""JQuery-Ajax Autocomplete fields for Django Forms."""
2-
__version__ = "1.4.2"
2+
__version__ = "1.4.3"
33
__author__ = "crucialfelix"
44
__contact__ = "[email protected]"
55
__homepage__ = "https://github.com/crucialfelix/django-ajax-selects/"

ajax_select/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def autoselect_fields_check_can_add(form, model, user):
407407
"""
408408
for name, form_field in form.declared_fields.items():
409409
if isinstance(form_field, (AutoCompleteSelectMultipleField, AutoCompleteSelectField)):
410-
db_field = model._meta.get_field_by_name(name)[0]
410+
db_field = model._meta.get_field(name)
411411
form_field.check_can_add(user, db_field.rel.to)
412412

413413

ajax_select/static/ajax_select/js/ajax_select.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@
228228
// if dynamically injecting forms onto a page
229229
// you can trigger them to be ajax-selects-ified:
230230
$(window).trigger('init-autocomplete');
231-
$('.inline-group ul.tools a.add, .inline-group div.add-row a, .inline-group .tabular tr.add-row td a')
232-
.on('click', function() {
231+
$(document)
232+
.on('click', '.inline-group ul.tools a.add, .inline-group div.add-row a, .inline-group .tabular tr.add-row td a', function() {
233233
$(window).trigger('init-autocomplete');
234234
});
235235
});

docs/source/Release-notes.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Release Notes
22
=============
33

4+
See also CHANGELOG.md for github issues and bugfixes
45

56
1.4.0
67
=====

requirements-test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ coverage
22
coveralls
33
flake8>=2.1.0
44
tox>=1.7.0
5+
sphinx>=1.3.5
56
sphinx_rtd_theme

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
django>=1.5.1, <1.9
1+
django>=1.5.1, <=1.9
22
wheel==0.24.0

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[flake8]
22
ignore = E121,E122,E123,E124,E125,E126,E127,E128,E129,E131,E133
3-
exclude = ./example/AJAXSELECTS/lib/*
3+
exclude = ./example/AJAXSELECTS/lib/*,./example/AJAXSELECTS/bin/*,./docs/*
44
max-line-length = 120
55
max-complexity = 10

0 commit comments

Comments
 (0)