Limit a single record in model for django app?
An easy way is to use the setting's name as the primary key in the settings table. There can't be more than one record with the same primary key, so that will allow both Django and the database to guarantee integrity.
I want use a model to save the system setting for a django app, So I want to limit the model can only have one record, how to do the limit?