[python-django-tagging] renamed get_query_set to get_queryset resolves #1172580
Jakub QB Dorňák
jdornak at fedoraproject.org
Wed Dec 10 12:13:56 UTC 2014
commit 363c34e7f059b08a97d9c281fa6fa80014559b90
Author: Jakub Dorňák <jdornak at redhat.com>
Date: Wed Dec 10 13:12:17 2014 +0100
renamed get_query_set to get_queryset
resolves #1172580
python-django-tagging-0.3.4-get_queryset.patch | 20 ++++++++++++++++++++
python-django-tagging.spec | 7 ++++++-
2 files changed, 26 insertions(+), 1 deletions(-)
---
diff --git a/python-django-tagging-0.3.4-get_queryset.patch b/python-django-tagging-0.3.4-get_queryset.patch
new file mode 100644
index 0000000..47da33f
--- /dev/null
+++ b/python-django-tagging-0.3.4-get_queryset.patch
@@ -0,0 +1,20 @@
+--- django-tagging-0.3.4/tagging/managers.py.orig 2014-02-18 16:35:26.000000000 +0100
++++ django-tagging-0.3.4/tagging/managers.py 2014-12-10 13:03:34.040478665 +0100
+@@ -2,6 +2,8 @@
+ Custom managers for Django models registered with the tagging
+ application.
+ """
++
++import django
+ from django.contrib.contenttypes.models import ContentType
+ from django.db import models
+
+@@ -12,7 +14,7 @@ class ModelTagManager(models.Manager):
+ """
+ A manager for retrieving tags for a particular model.
+ """
+- def get_query_set(self):
++ def get_queryset(self):
+ ctype = ContentType.objects.get_for_model(self.model)
+ return Tag.objects.filter(
+ items__content_type__pk=ctype.pk).distinct()
diff --git a/python-django-tagging.spec b/python-django-tagging.spec
index 9774aa2..a3a441e 100644
--- a/python-django-tagging.spec
+++ b/python-django-tagging.spec
@@ -3,13 +3,14 @@
%global pkgname django-tagging
Name: python-django-tagging
Version: 0.3.4
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A generic tagging application for Django projects
Group: Development/Languages
License: MIT
URL: https://github.com/Fantomas42/django-tagging/
Source0: http://pypi.python.org/packages/source/d/%{pkgname}/%{pkgname}-%{version}.tar.gz
+Patch0: python-django-tagging-0.3.4-get_queryset.patch
BuildArch: noarch
BuildRequires: python2-devel
@@ -44,6 +45,7 @@ simple.
%prep
%setup -q -n %{pkgname}-%{version}
+%patch0 -p 1
%if 0%{?with_python3}
cp -a . %{py3dir}
@@ -84,6 +86,9 @@ popd
%changelog
+* Wed Dec 10 2014 Jakub Dorňák <jdornak at redhat.com> - 0.3.4-2
+- renamed get_query_set to get_queryset
+
* Wed Dec 10 2014 Jakub Dorňák <jdornak at redhat.com> - 0.3.4-1
- rebase to version 0.3.4
More information about the scm-commits
mailing list