mirror of
https://github.com/evennia/evennia.git
synced 2026-03-26 01:36: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
|
||||
|
|
|
|||
|
|
@ -180,7 +180,6 @@ class SharedMemoryModel(Model):
|
|||
super(SharedMemoryModel, cls).save(*args, **kwargs)
|
||||
else:
|
||||
# in another thread; make sure to save in reactor thread
|
||||
print "saving in another thread!"
|
||||
def _save_callback(cls, *args, **kwargs):
|
||||
super(SharedMemoryModel, cls).save(*args, **kwargs)
|
||||
#blockingCallFromThread(reactor, _save_callback, cls, *args, **kwargs)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue