<p>If you want to add a unique non-nullable field to a table with existent rows, you'll need to a few extra steps because <strong>Django generates the value to populate existent rows only once</strong>. For the extra steps, check these instructions in #migrations-that-add-unique-fields</p>
By clicking “Accept cookies”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts. Check our privacy policies.
By clicking “Accept all”, you agree to the storing of cookies on your device to enhance site navigation, analyze site usage and assist in our marketing efforts. Check our privacy policies.