From 006da597c6e267824e65c1b20d4a25857ac92131 Mon Sep 17 00:00:00 2001 From: Guillaume Normand Date: Tue, 25 Jun 2024 16:49:15 -0500 Subject: [PATCH] Bugfix Django 4 --- README.rst | 2 +- likes/api/fields.py | 2 +- setup.py | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index d6b90ce..640e9d5 100644 --- a/README.rst +++ b/README.rst @@ -2,7 +2,7 @@ django-ok-likes-latest ============================== -``django-ok-likes-latest`` is a liking app for Django, which allows users "like" and "unlike" any model instance. All functionality provides through `django-rest-framework`_ API views. Template tags and jinja's global functions provide the ability to see who liked an object, which objects were liked by current user and count of likes for a given object. And is compatible with Djnago 5.0 +``django-ok-likes-latest`` is a liking app for Django, which allows users "like" and "unlike" any model instance. All functionality provides through `django-rest-framework`_ API views. Template tags and jinja's global functions provide the ability to see who liked an object, which objects were liked by current user and count of likes for a given object. And is compatible with Django 5.0 Installation ============ diff --git a/likes/api/fields.py b/likes/api/fields.py index e139dbe..32ca7df 100644 --- a/likes/api/fields.py +++ b/likes/api/fields.py @@ -1,7 +1,7 @@ from django.apps import apps from django.contrib.contenttypes.models import ContentType from django.utils.module_loading import import_string -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import gettext_lazy as _ from rest_framework import serializers diff --git a/setup.py b/setup.py index 1f27db6..d6bae7d 100644 --- a/setup.py +++ b/setup.py @@ -8,7 +8,7 @@ setup( name='django-ok-likes-latest', - version='0.8.0', + version='0.8.1', description='Django likes app latest', long_description='file: README.rst', author='Abhishek Khanduri', @@ -22,8 +22,10 @@ 'Environment :: Web Environment', "Development Status :: 4 - Beta", "Operating System :: OS Independent", + "Framework :: Django :: 4.2", "Framework :: Django :: 5.0", 'Intended Audience :: Developers', + "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", ]