Switch from syncdb to migrate, which fixes FTBFS (Closes: #806362).

This commit is contained in:
Thomas Goirand
2015-12-23 09:48:29 +00:00
parent 824b4455c4
commit 0983806bd3
3 changed files with 24 additions and 0 deletions

6
debian/changelog vendored
View File

@@ -1,3 +1,9 @@
python-django-bootstrap-form (3.1.0-6) unstable; urgency=medium
* Switch from syncdb to migrate, which fixes FTBFS (Closes: #806362).
-- Thomas Goirand <zigo@debian.org> Wed, 23 Dec 2015 09:48:16 +0000
python-django-bootstrap-form (3.1.0-5) unstable; urgency=medium
* Added Python 3 support (Closes: #761294).

View File

@@ -0,0 +1,17 @@
Description: Replace syncdb by migrate
Upstream Django moved from syncdb to migrate in release 1.9. This fixes it.
Author: Thomas Goirand <zigo@debian.org>
Forwarded: no
Last-Update: 2015-12-23
--- python-django-bootstrap-form-3.1.0.orig/tests/__init__.py
+++ python-django-bootstrap-form-3.1.0/tests/__init__.py
@@ -41,7 +41,7 @@ class ExampleForm(forms.Form):
class BootstrapTemplateTagTests(TestCase):
def setUp(self):
- call_command('syncdb', interactive=False)
+ call_command('migrate', interactive=False)
self.maxDiff = None
@classmethod

View File

@@ -1,2 +1,3 @@
0001-Add-django.setup-for-Django-1.7-compatibility.patch
0002-Fix-test-case-for-Django-1.7-s-addition-of-an-id-att.patch
0003-replace-syncdb-by-migrate.patch