R
R
rusyska550112021-09-11 22:10:22
Django
rusyska55011, 2021-09-11 22:10:22

How to allow only one record in Django 3 DB?

I am writing a website and I want to make its description editable, which will be displayed on the main page through the admin panel. How do I allow only one entry in the database?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Kuts, 2021-09-11
@rusyska55011

Implement Singleton model for example...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question