mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Merge pull request #1939 from gtaylor/u-str-removal
Remove a couple of lingering u strings
This commit is contained in:
commit
bce118ca93
1 changed files with 3 additions and 3 deletions
|
|
@ -341,7 +341,7 @@ class ObjectDetailView(EvenniaDetailView):
|
|||
# Check if this object was requested in a valid manner
|
||||
if slugify(obj.name) != self.kwargs.get(self.slug_url_kwarg):
|
||||
raise HttpResponseBadRequest(
|
||||
u"No %(verbose_name)s found matching the query" %
|
||||
"No %(verbose_name)s found matching the query" %
|
||||
{'verbose_name': queryset.model._meta.verbose_name})
|
||||
|
||||
# Check if the requestor account has permissions to access object
|
||||
|
|
@ -937,7 +937,7 @@ class ChannelDetailView(ChannelMixin, ObjectDetailView):
|
|||
# Check if this object was requested in a valid manner
|
||||
if not obj:
|
||||
raise HttpResponseBadRequest(
|
||||
u"No %(verbose_name)s found matching the query" %
|
||||
"No %(verbose_name)s found matching the query" %
|
||||
{'verbose_name': queryset.model._meta.verbose_name})
|
||||
|
||||
return obj
|
||||
|
|
@ -1082,7 +1082,7 @@ class HelpDetailView(HelpMixin, EvenniaDetailView):
|
|||
# Check if this object was requested in a valid manner
|
||||
if not obj:
|
||||
raise HttpResponseBadRequest(
|
||||
u"No %(verbose_name)s found matching the query" %
|
||||
"No %(verbose_name)s found matching the query" %
|
||||
{'verbose_name': queryset.model._meta.verbose_name})
|
||||
|
||||
return obj
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue