Custom Model Fields

2010-05-09 Thread Nick Taylor
Hi all, I want to create my own "field" type for a model, this essentially will be a relationship to another model via a generic link model (using GenericForeignKey etc). As en example I basically want to do the following in models.py: class Pizza(models.Model): toppings = IngredientsField()

Additional Text Form Field within a Models Admin Screen

2010-05-08 Thread Nick Taylor
Hi all, I'm pretty new to Django so bare with me if this is a simple question. Basically, I have an Article model which is simply title, body, status etc. Now, I want to add an additional TextBox to the admin for the model, but I don't want to add it as part of the Article model, as I don't want