Permalink
Browse files

Fixes broken examples in documentation.

  • Loading branch information...
1 parent 13ddf80 commit e4f4979dedacb377ab036392e955e25f3d947216 @per42 per42 committed Feb 20, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 docs/getting-started.rst
View
@@ -127,7 +127,7 @@ describing a book::
# The author should probably be a foreign key in the real world, but
# this is just an example
author = models.CharField(max_length=255)
- cover_picture = models.ImageField()
+ cover_picture = models.ImageField(upload_to='img/book')
isbn = models.CharField(max_length=255)
class Meta:
@@ -141,6 +141,9 @@ Like a normal Django model, you might want to register it to the admin interface
to allow easy edition by your users. In an ``admin.py`` file::
from django.contrib import admin
+
+ from models import Book
+
admin.site.register(Book)
That's it!

0 comments on commit e4f4979

Please sign in to comment.