Im not sure how to put this title.
But what I need is a simple model that I can just update everytime. Lets say I have a Settings model ,and these settings I just want to update or change every now and again. So there is no need to add another object to that model.
Is there suck a field or type of admin-model that I can use?
I could otherwise just keep updating the same object, but I do not want the user to be able to just “Add Setting”.
in admin you can specify various permissions. to remove the “add” functionality:
class MyModelAdmin(admin.ModelAdmin): def has_add_permission(self, request): return Falsemake 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?