1👍
✅
'Requires moderation'
only relates to the human readable string for your given choice. Instead you need to use the integer that represents that choice for your default
models.SmallIntegerField(_("Status"), choices=STATUS_CHOICES, default=FOR_MODERATION)
0👍
Your status
field is a SmallIntegerField
with a default value of the string “Requires Moderation”. You can’t put such a string in a numeric field.
The trick to finding this is to find where Requires Moderation
appears in your code.
👤zmbq
- I get rid of class in CSS and my paragraph element wont work…WHY?
- Using the URLconf defined in TEST_PAGE, Django tried these URL patterns, in this order:
- Django and mysql on different servers performance
- How to add a python element directly to a <img> HTML element?
- Automatically registering Django model in a separate table
Source:stackexchange.com