Fix Python – How to properly use the “choices” field option in Django

I’m reading the tutorial here: https://docs.djangoproject.com/en/1.5/ref/models/fields/#choices
and i’m trying to create a box where the user can select the month he was born in. What I tried was
MONTH_CHOICES = (
(JANUARY, “January”),
(FEBRUARY, “February”),
(MARCH, “March”),
….
(DECEMBER, “December”),
)

month = CharField(….

Fix Python – Resize fields in Django Admin

Django tends to fill up horizontal space when adding or editing entries on the admin, but, in some cases, is a real waste of space, when, i.e., editing a date field, 8 characters wide, or a CharField, also 6 or 8 chars wide, and then the edit box goes up to 15 or 20 chars.
How can I tell the admin how wide a textbox should be, or the height of a T….

Fix Python – Getting TypeError: __init__() missing 1 required positional argument: ‘on_delete’ when trying to add parent table after child table with entries

I have two classes in my sqlite database, a parent table named Categorie and the child table called Article. I created first the child table class and addes entries. So first I had this:
class Article(models.Model):
titre=models.CharField(max_length=100)
auteur=models.CharField(max_length=42)
contenu=models.TextField(null=True)
dat….