[Python-modules-commits] [django-taggit] 02/04: Imported Upstream version 0.17.5

Michal Cihar nijel at moszumanska.debian.org
Fri Dec 4 15:57:20 UTC 2015


This is an automated email from the git hooks/post-receive script.

nijel pushed a commit to branch master
in repository django-taggit.

commit 7428a4f5f00ffddfb0030917000f7209ecd822a2
Author: Michal Čihař <nijel at debian.org>
Date:   Fri Dec 4 16:49:21 2015 +0100

    Imported Upstream version 0.17.5
---
 CHANGELOG.txt                   |  5 +++++
 PKG-INFO                        |  2 +-
 django_taggit.egg-info/PKG-INFO |  2 +-
 taggit/__init__.py              |  2 +-
 taggit/managers.py              |  1 +
 tests/tests.py                  | 10 ++++++++++
 6 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index f9520c3..d2cbaee 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,6 +1,11 @@
 Changelog
 =========
 
+0.17.5 (2015-11-27)
+~~~~~~~~~~~~~~~~~~~
+ * Django 1.9 compatibility fix
+  * https://github.com/alex/django-taggit/pull/364
+
 0.17.4 (2015-11-25)
 ~~~~~~~~~~~~~~~~~~~
  * Allows custom Through Model with GenericForeignKey
diff --git a/PKG-INFO b/PKG-INFO
index dfe9886..9e33f98 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: django-taggit
-Version: 0.17.4
+Version: 0.17.5
 Summary: django-taggit is a reusable Django application for simple tagging.
 Home-page: http://github.com/alex/django-taggit/tree/master
 Author: Alex Gaynor
diff --git a/django_taggit.egg-info/PKG-INFO b/django_taggit.egg-info/PKG-INFO
index dfe9886..9e33f98 100644
--- a/django_taggit.egg-info/PKG-INFO
+++ b/django_taggit.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: django-taggit
-Version: 0.17.4
+Version: 0.17.5
 Summary: django-taggit is a reusable Django application for simple tagging.
 Home-page: http://github.com/alex/django-taggit/tree/master
 Author: Alex Gaynor
diff --git a/taggit/__init__.py b/taggit/__init__.py
index fb92fdc..499f12d 100644
--- a/taggit/__init__.py
+++ b/taggit/__init__.py
@@ -1 +1 @@
-VERSION = (0, 17, 4)
+VERSION = (0, 17, 5)
diff --git a/taggit/managers.py b/taggit/managers.py
index 350ab1c..bc6cba1 100644
--- a/taggit/managers.py
+++ b/taggit/managers.py
@@ -349,6 +349,7 @@ class TaggableManager(RelatedField, Field):
         else:
             self.set_attributes_from_name(name)
         self.model = cls
+        self.opts = cls._meta
 
         cls._meta.add_field(self)
         setattr(cls, name, self)
diff --git a/tests/tests.py b/tests/tests.py
index 9618c0d..b6ba3bb 100644
--- a/tests/tests.py
+++ b/tests/tests.py
@@ -6,6 +6,7 @@ import django
 from django.contrib.contenttypes.models import ContentType
 from django.core import serializers
 from django.core.exceptions import ImproperlyConfigured, ValidationError
+from django.core.management import call_command
 from django.db import connection, models
 from django.test import TestCase, TransactionTestCase
 from django.test.utils import override_settings
@@ -657,3 +658,12 @@ class InheritedPrefetchTests(TestCase):
         self.assertEquals(4, prefetch_tags.count())
         self.assertEquals(set([t.name for t in no_prefetch_tags]),
                           set([t.name for t in prefetch_tags]))
+
+
+class DjangoCheckTests(UnitTestCase):
+
+    def test_django_checks(self):
+        if django.VERSION >= (1, 6):
+            call_command('check', tag=['models'])
+        else:
+                    call_command('validate')

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/django-taggit.git



More information about the Python-modules-commits mailing list