Webserver move to Server is finished and everything seems to work normally.

This commit is contained in:
Griatch 2013-05-24 21:10:31 +02:00
parent 70ea21dab8
commit 0a39b8f65e
2 changed files with 2 additions and 2 deletions

View file

@ -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