Commit c61127fda5ad88a5d89fd7391dcc3c6c0bbad30c
Committed by
Claude Paroz
1 parent
02474a00
Used python_2_unicode_compatible from six.
django.utils.encoding.python_2_unicode_compatible() alias was removed in Django 3.0.
Showing
4 changed files
with
4 additions
and
4 deletions
| ... | ... | @@ -7,8 +7,8 @@ from django.contrib.sites.models import Site |
| 7 | 7 | from django.db import models |
| 8 | 8 | from django.urls import reverse |
| 9 | 9 | from django.utils import timezone |
| 10 | -from django.utils.encoding import python_2_unicode_compatible | |
| 11 | 10 | from django.utils.translation import ugettext_lazy as _ |
| 11 | +from six import python_2_unicode_compatible | |
| 12 | 12 | |
| 13 | 13 | from .managers import CommentManager |
| 14 | 14 | ... | ... |
| 1 | 1 | from django.conf import settings |
| 2 | 2 | from django.db import models |
| 3 | 3 | from django.utils import timezone |
| 4 | -from django.utils.encoding import python_2_unicode_compatible | |
| 5 | 4 | from django.utils.translation import ugettext_lazy as _ |
| 5 | +from six import python_2_unicode_compatible | |
| 6 | 6 | |
| 7 | 7 | from .abstracts import ( |
| 8 | 8 | COMMENT_MAX_LENGTH, BaseCommentAbstractModel, CommentAbstractModel, | ... | ... |
Please
register
or
login
to post a comment