Add a `random_value` function to the single select field
If you use the fill_table
management command, it depends on the field type which random value will be generated. It will call the random_value
of the FieldType subclass to generate the right random value and inserts that into the table. The SingleSelectFieldType
does not yet have a random_value
method to generate these values. The random_value
method should be added to the SingleSelectFieldType
, it should check which options are available and should return one randomly.
Edited by Bram Wiepjes