mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 16:56:32 +01:00
Webserver move to Server is finished and everything seems to work normally.
This commit is contained in:
parent
70ea21dab8
commit
0a39b8f65e
2 changed files with 2 additions and 2 deletions
|
|
@ -80,7 +80,7 @@ class ObjectDBAdmin(admin.ModelAdmin):
|
|||
)
|
||||
|
||||
#deactivated temporarily, they cause empty objects to be created in admin
|
||||
inlines = [AliasInline]#, ObjAttributeInline]
|
||||
#inlines = [AliasInline, ObjAttributeInline]
|
||||
|
||||
|
||||
# Custom modification to give two different forms wether adding or not.
|
||||
|
|
@ -111,6 +111,7 @@ class ObjectDBAdmin(admin.ModelAdmin):
|
|||
return super(ObjectDBAdmin, self).get_form(request, obj, **defaults)
|
||||
|
||||
def save_model(self, request, obj, form, change):
|
||||
obj.save()
|
||||
if not change:
|
||||
# adding a new object
|
||||
obj = obj.typeclass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue