I have a model MyModel in django one of whose fields gets a value from a sequence upon insert into Oracle 12c. So I do
myModel = MyModel(field1=123,field2='abc')
myModel.save()
The problem is that field1 gets its value upon insert into the Oracle database. If I omit the field then try to save I get ORA-01400: cannot insert NULL. There's no way I can give the field a value in django, either. How do I save the model? Thanks.