Bugs posts
Django On-Demand Model Fields
November 19th, 2009
I'm writing an Inventory system for work in my downtime, part to brush up my rusting Django skills, part because we really need one.
We started with a few requirements for what would make a good inventory system to meet our needs, and one of those was that it would be painless to add new types of items and have the ability to customize them. If you know much about Django models, you probably know enough to know that models are typically hard-baked. If you're writing a blog system, you might create a model with fields for Title, Author, Date, Text. Well for us, what if I want Widget X to have a field for Serial Number, and Widget Y to have a field for Firmware?
Search
Popular Tags