Django: Setting up database code tables (aka reference tables, domain tables)?

Posted by User on Stack Overflow See other posts from Stack Overflow or by User
Published on 2010-05-16T22:04:10Z Indexed on 2010/05/16 22:10 UTC
Read the original article Hit count: 304

Often times applications will need some database code tables (aka reference tables or domain tables or lookup tables). Suppose I have a model class called Status with a field called name that could hold values like:

Canceled
Pending
InProgress
Complete

Where and at what point would I setup these values in Django? Its like a one time operation to setup these values in the database. Infrequently, these values could be added to.

© Stack Overflow or respective owner

Related posts about django

Related posts about django-models