From 1790d5a9f05e599a03c34dee1e724208ae51b2a4 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 | 2 +- 3 files changed, 3 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..a15f934 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',