Model ChoiceField?

67 views
Skip to first unread message

Lachlan Musicman

unread,
Aug 30, 2012, 9:09:07 PM8/30/12
to django...@googlegroups.com
Hi,

I was just wondering if there was any noticeable difference between
the models.ChoiceField() and the models.CharField(max_length=x,)?

In the documentation I have (offline, Django v1.4) a reference to:

/path/django-docs-1.4-en/ref/forms/fields.html#django.forms.ChoiceField.choices

But in the example given at
/path/django-docs-1.4-en/ref/models/fields.html#field-choices they use
the CharField() method.

Is there a discernible difference or is it just for clarity?

cheers
L.

Lachlan Musicman

unread,
Aug 30, 2012, 9:14:03 PM8/30/12
to django...@googlegroups.com
Ok, ignore this email - I've just realised one is a Form field, and
the other is a Model field. Apols for stupid.

Cheers
L.
Reply all
Reply to author
Forward
0 new messages