[Answered ]-Django admin – Keep updating a model and do not create more than one


in admin you can specify various permissions. to remove the “add” functionality:

class MyModelAdmin(admin.ModelAdmin):
    def has_add_permission(self, request): return False

make sure you create your first and only settings object when you deploy the application.

here is a discussion about singleton models in django: How about having a SingletonModel in Django?


Leave a comment