Fix Django4 deprecation warnings

This commit is contained in:
Jan Dittberner 2023-07-08 18:32:15 +02:00
parent 30ffdf1751
commit 8aadae1c83
4 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
from django.contrib import admin from django.contrib import admin
from django.contrib.auth import get_user_model from django.contrib.auth import get_user_model
from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
from help.models import HelpUser from help.models import HelpUser

View file

@ -2,7 +2,7 @@ import uuid
from django.conf import settings from django.conf import settings
from django.db import models from django.db import models
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
class HelpUser(models.Model): class HelpUser(models.Model):

View file

@ -1,5 +1,5 @@
from django.apps import AppConfig from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
class InvoiceConfig(AppConfig): class InvoiceConfig(AppConfig):

View file

@ -3,7 +3,7 @@ from django.conf import settings
from django.core.exceptions import ValidationError from django.core.exceptions import ValidationError
from django.core.validators import FileExtensionValidator from django.core.validators import FileExtensionValidator
from django.db import models from django.db import models
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import gettext_lazy as _
CURRENCIES = [(1, "EUR")] CURRENCIES = [(1, "EUR")]