mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
fix(admin): repair Link to Account button (pk→object_id mismatch)
- Admin URL used <int:pk> while ObjectAdmin.link_object_to_account() expected object_id, causing a TypeError when clicking the button. - Updated URL to use <int:object_id>. Closes #3808
This commit is contained in:
parent
27f0ccec4a
commit
e91e02839c
1 changed files with 1 additions and 1 deletions
|
|
@ -287,7 +287,7 @@ class ObjectAdmin(admin.ModelAdmin):
|
|||
urls = super().get_urls()
|
||||
custom_urls = [
|
||||
path(
|
||||
"account-object-link/<int:pk>",
|
||||
"account-object-link/<int:object_id>",
|
||||
self.admin_site.admin_view(self.link_object_to_account),
|
||||
name="object-account-link",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue