On Mon, Jan 02, 2012 at 12:54:38PM -0800, Sepero wrote:
I would like to suggest listing/displaying the Parent Class for
classes on API pages like this-
https://docs.djangoproject.com/en/1.3/ref/models/fields/

In part1 of the Django tutorial, it instructs to create a model like
this-
pub_date = models.DateTimeField('date published')

While trying to look up what the argument 'date published' was
supposed to assign, I was presented with this definition-

I agree that it is not obvious in the tutorial what the first argument is setting. It is documented elsewhere:

https://docs.djangoproject.com/en/1.3/topics/db/models/#verbose-field-names

class DateTimeField([auto_now=False, auto_now_add=False, **options])

In the description it vaguely indicates that DateTimeField is a child
of DateField (which has the same definition), and I see no indication
at all that DateField is a child of Field.

The description says "Takes the same extra arguments as DateField." I think all it implies is that it is similar to DateField.

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to