Skip to content

Commit

Permalink
fix: replaced smart_text alias with smart_str. Ref: https://docs.djan…
Browse files Browse the repository at this point in the history
  • Loading branch information
tncrdk committed Oct 10, 2023
1 parent 8ab275f commit 6e827a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nablapps/accounts/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from django.contrib.flatpages.models import FlatPage
from django.http import HttpResponseRedirect
from django.urls import reverse
from django.utils.encoding import smart_text
from django.utils.encoding import smart_str

from .forms import NablaUserChangeForm, NablaUserCreationForm
from .models import FysmatClass, NablaGroup, NablaUser, RegistrationRequest
Expand All @@ -30,7 +30,7 @@ class UserFullnameMultipleChoiceField(forms.ModelMultipleChoiceField):
"""

def label_from_instance(self, obj):
return smart_text(f"{obj.get_full_name()} - {obj.username}")
return smart_str(f"{obj.get_full_name()} - {obj.username}")


class GroupAdminForm(forms.ModelForm):
Expand Down

0 comments on commit 6e827a8

Please sign in to comment.