Make the patch syntax compatible with 2.7
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-Flask-Admin?expand=0&rev=21
This commit is contained in:
parent
ded5fffd1c
commit
a4dced0a38
@ -7,7 +7,7 @@
|
|||||||
flask_admin/tests/mongoengine/test_basic.py | 557 ++++-----
|
flask_admin/tests/mongoengine/test_basic.py | 557 ++++-----
|
||||||
flask_admin/tests/peeweemodel/test_basic.py | 628 +++++-----
|
flask_admin/tests/peeweemodel/test_basic.py | 628 +++++-----
|
||||||
flask_admin/tests/pymongo/test_basic.py | 44
|
flask_admin/tests/pymongo/test_basic.py | 44
|
||||||
flask_admin/tests/sqla/test_basic.py | 1176 +++++++++-----------
|
flask_admin/tests/sqla/test_basic.py | 1178 +++++++++-----------
|
||||||
flask_admin/tests/sqla/test_form_rules.py | 46
|
flask_admin/tests/sqla/test_form_rules.py | 46
|
||||||
flask_admin/tests/sqla/test_inlineform.py | 78 -
|
flask_admin/tests/sqla/test_inlineform.py | 78 -
|
||||||
flask_admin/tests/sqla/test_multi_pk.py | 56
|
flask_admin/tests/sqla/test_multi_pk.py | 56
|
||||||
@ -19,7 +19,7 @@
|
|||||||
flask_admin/tests/test_tools.py | 16
|
flask_admin/tests/test_tools.py | 16
|
||||||
setup.cfg | 10
|
setup.cfg | 10
|
||||||
setup.py | 4
|
setup.py | 4
|
||||||
20 files changed, 1714 insertions(+), 1774 deletions(-)
|
20 files changed, 1715 insertions(+), 1775 deletions(-)
|
||||||
|
|
||||||
--- a/README.rst
|
--- a/README.rst
|
||||||
+++ b/README.rst
|
+++ b/README.rst
|
||||||
@ -4424,6 +4424,15 @@
|
|||||||
|
|
||||||
|
|
||||||
def test_hybrid_property_nested():
|
def test_hybrid_property_nested():
|
||||||
|
@@ -1666,7 +1644,7 @@ def test_hybrid_property_nested():
|
||||||
|
|
||||||
|
@hybrid_property
|
||||||
|
def fullname(self):
|
||||||
|
- return f'{self.firstname} {self.lastname}'
|
||||||
|
+ return '{} {}'.format(self.firstname, self.lastname)
|
||||||
|
|
||||||
|
class Model2(db.Model):
|
||||||
|
id = db.Column(db.Integer, primary_key=True)
|
||||||
@@ -1676,8 +1654,8 @@ def test_hybrid_property_nested():
|
@@ -1676,8 +1654,8 @@ def test_hybrid_property_nested():
|
||||||
|
|
||||||
db.create_all()
|
db.create_all()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user