mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Add missing fix to ChannelDB admin.
This commit is contained in:
parent
ee19a92c55
commit
822227090b
1 changed files with 7 additions and 0 deletions
|
|
@ -89,5 +89,12 @@ class ChannelAdmin(admin.ModelAdmin):
|
|||
obj.set_class_from_typeclass(typeclass_path=settings.BASE_CHANNEL_TYPECLASS)
|
||||
obj.at_init()
|
||||
|
||||
def response_add(self, request, obj, post_url_continue=None):
|
||||
if '_continue' in request.POST:
|
||||
from django.http import HttpResponseRedirect
|
||||
from django.core.urlresolvers import reverse
|
||||
return HttpResponseRedirect(reverse("admin:comms_channeldb_change", args=[obj.id]))
|
||||
return super(ChannelAdmin, self).response_add(request, obj, post_url_continue)
|
||||
|
||||
|
||||
admin.site.register(ChannelDB, ChannelAdmin)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue