In this post, we will see how to resolve Django model, how to auto-increment an object’s value
Question:
So I have this Django model.py:Best Answer:
You can specify a callable for the default:If you have better answer, please add a comment about this, thank you!
Source: Stackoverflow.com
Leave a Review