I found the problem. The object_id needs to be a string! So the
following works like a charm:
from wolkdata.database.models import *
from django.contrib import admin
class SettingsAdmin(admin.ModelAdmin):
def changelist_view(self, request, extra_context=None):
object_id = str(Settings.objects.all()[0].id)
return super(SettingsAdmin, self).change_view(self, request,
object_id, extra_context=None)
admin.site.register(Settings, SettingsAdmin)
When I click on the Settings option on the admin page I go right to
the change_view page.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.