Help us understand the problem. What is going on with this article?

Djangoのモデルで、自動で増えるフィールドを作る

More than 3 years have passed since last update.

概要

 Djangoで、主キー以外にも自動で増えるフィールドを作りたい時の為のメモ。

このやり方はスマートだけれど初回はエラーになったり
色々融通が利かないところが有る。
 https://torina.top/detail/230/

こちらのやり方を使って初期値の定義や上昇幅を外部で定義してやればいけそう
 http://techstream.org/Web-Development/Custom-Auto-Increment-Field-Django

ainamori
インフラエンジニア puppet -> chef -> Ansible -> python (?) <- イマココ
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away