-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support Python3.10 over & Django4.2 #15
Changes from all commits
ef76168
13f9dfe
8645f64
6200112
bee2123
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,11 +3,9 @@ | |
|
||
from django.contrib.contenttypes.models import ContentType | ||
from django.contrib.contenttypes.fields import GenericForeignKey | ||
from django.utils.translation import ugettext_lazy as _ | ||
from django.utils.translation import gettext_lazy as _ | ||
from django.db import models | ||
|
||
import jsonfield | ||
|
||
from beproud.django.notify.api import _get_media_map | ||
|
||
__all__ = ( | ||
|
@@ -42,7 +40,7 @@ class Notification(models.Model): | |
notify_type = models.CharField(_('notify type'), max_length=100, db_index=True) | ||
media = models.CharField(_('media'), max_length=100, choices=MediaChoices(), db_index=True) | ||
|
||
extra_data = jsonfield.JSONField(_('extra data'), null=True, blank=True) | ||
extra_data = models.JSONField(_('extra data'), null=True, blank=True) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Django標準のものを使うようにするので置き換え https://docs.djangoproject.com/en/5.0/ref/models/fields/#django.db.models.JSONField There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. MEMO: 旧バージョンのbpnotify使ってたプロジェクトの場合は、自プロジェクトでマイグレーションが必要 |
||
|
||
ctime = models.DateTimeField(_('created'), auto_now_add=True, db_index=True) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
django.utils.translation.ugettext() はDjango4.0で削除 https://docs.djangoproject.com/en/5.0/releases/4.0/#features-removed-in-4-0