diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-07-19 17:20:37 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-07-19 17:20:37 +0000 |
| commit | df66763406cc76e8d0c65b3a857c891c21c25f49 (patch) | |
| tree | 0e6e293d8da53eb26fe8ef59678e5750901c970e /docs/overview.txt | |
| parent | e243d8287442a65d8c620f5c4f3033aa7d6bbd82 (diff) | |
Fixed #67 -- Human-readable name is now optional in model fields. If a second positional argument isn't given, Django will use the first argument, converting underscores to spaces. This change is fully backwards-compatible.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@212 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs/overview.txt')
| -rw-r--r-- | docs/overview.txt | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/docs/overview.txt b/docs/overview.txt index a7e0f1c14c..1453b70964 100644 --- a/docs/overview.txt +++ b/docs/overview.txt @@ -22,7 +22,7 @@ solving two years' worth of database-schema problems. Here's a quick example:: class Reporter(meta.Model): fields = ( - meta.CharField('full_name', "reporter's full name", maxlength=70), + meta.CharField('full_name', maxlength=70), ) def __repr__(self): @@ -30,9 +30,9 @@ solving two years' worth of database-schema problems. Here's a quick example:: class Article(meta.Model): fields = ( - meta.DateTimeField('pub_date', 'publication date'), - meta.CharField('headline', 'headline', maxlength=200), - meta.TextField('article', 'article'), + meta.DateTimeField('pub_date'), + meta.CharField('headline', maxlength=200), + meta.TextField('article'), meta.ForeignKey(Reporter), ) @@ -133,9 +133,9 @@ classes:: class Article(meta.Model): fields = ( - meta.DateTimeField('pub_date', 'publication date'), - meta.CharField('headline', 'headline', maxlength=200), - meta.TextField('article', 'article'), + meta.DateTimeField('pub_date'), + meta.CharField('headline', maxlength=200), + meta.TextField('article'), meta.ForeignKey(Reporter), ) admin = meta.Admin( @@ -302,7 +302,11 @@ features: * An RSS framework that makes creating RSS feeds as easy as writing a small Python class. * More sexy automatically-generated admin features -- this overview barely - scratched the surface + scratched the surface. -The next obvious steps are for you to download Django, read the documentation -and join the community. Thanks for your interest!
\ No newline at end of file +The next obvious steps are for you to `download Django`_, read `the tutorial`_ +and join `the community`_. Thanks for your interest! + +.. _download Django: http://www.djangoproject.com/documentation/ +.. _the tutorial: http://www.djangoproject.com/documentation/tutorial1/ +.. _the community: http://www.djangoproject.com/community/ |
