diff --git a/debian/changelog b/debian/changelog index d48757b..e25d95f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 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). diff --git a/debian/patches/0003-replace-syncdb-by-migrate.patch b/debian/patches/0003-replace-syncdb-by-migrate.patch new file mode 100644 index 0000000..e55ce75 --- /dev/null +++ b/debian/patches/0003-replace-syncdb-by-migrate.patch @@ -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 +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 diff --git a/debian/patches/series b/debian/patches/series index e0df862..4f953af 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -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