Up min versions to py3.9, Django 4

This commit is contained in:
Griatch 2022-02-04 23:24:48 +01:00
parent 89f9eaffcc
commit b76c5d2bab
15 changed files with 44 additions and 58 deletions

View file

@ -278,7 +278,7 @@ class AccountAdmin(BaseUserAdmin):
return str(dbserialize.pack_dbobj(obj))
serialized_string.help_text = (
"Copy & paste this string into an Attribute's `value` field to store it there."
"Copy & paste this string into an Attribute's `value` field to store this account there."
)
def puppeted_objects(self, obj):

View file

@ -129,7 +129,8 @@ class MsgAdmin(admin.ModelAdmin):
return str(dbserialize.pack_dbobj(obj))
serialized_string.help_text = (
"Copy & paste this string into an Attribute's `value` field to store it there."
"Copy & paste this string into an Attribute's `value` field to store "
"this message-object there."
)
def get_form(self, request, obj=None, **kwargs):
@ -246,7 +247,7 @@ class ChannelAdmin(admin.ModelAdmin):
return str(dbserialize.pack_dbobj(obj))
serialized_string.help_text = (
"Copy & paste this string into an Attribute's `value` field to store it there."
"Copy & paste this string into an Attribute's `value` field to store this channel there."
)
def get_form(self, request, obj=None, **kwargs):

View file

@ -4,10 +4,9 @@
#
from django.conf import settings
from django import forms
from django.urls import reverse
from django.urls import reverse, path
from django.http import HttpResponseRedirect
from django.conf import settings
from django.conf.urls import url
from django.contrib import admin, messages
from django.contrib.admin.utils import flatten_fieldsets
from django.contrib.admin.widgets import ForeignKeyRawIdWidget
@ -227,7 +226,7 @@ class ObjectAdmin(admin.ModelAdmin):
return str(dbserialize.pack_dbobj(obj))
serialized_string.help_text = (
"Copy & paste this string into an Attribute's `value` field to store it there."
"Copy & paste this string into an Attribute's `value` field to store this object there."
)
def get_fieldsets(self, request, obj=None):
@ -266,8 +265,8 @@ class ObjectAdmin(admin.ModelAdmin):
def get_urls(self):
urls = super().get_urls()
custom_urls = [
url(
r"^account-object-link/(?P<object_id>.+)/$",
path(
"account-object-link/<int:pk>",
self.admin_site.admin_view(self.link_object_to_account),
name="object-account-link"
)

View file

@ -125,7 +125,7 @@ class ScriptAdmin(admin.ModelAdmin):
return str(dbserialize.pack_dbobj(obj))
serialized_string.help_text = (
"Copy & paste this string into an Attribute's `value` field to store it there."
"Copy & paste this string into an Attribute's `value` field to store this script there."
)