diff options
| author | Silvan Spross <silvan.spross@gmail.com> | 2013-05-18 14:00:52 +0200 |
|---|---|---|
| committer | Marc Egli <frog32@me.com> | 2013-05-18 18:39:11 +0200 |
| commit | cd72c55d8603751af40a55d2d18f264827fa0744 (patch) | |
| tree | 10d1571c17b7b15cf5ecde6db741a7a52bc7f85a /docs/topics/files.txt | |
| parent | e4591debd19361e628317e936ed8123d9897dd6a (diff) | |
Add missing imports and models to the examples in the view layer documentation
Diffstat (limited to 'docs/topics/files.txt')
| -rw-r--r-- | docs/topics/files.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/topics/files.txt b/docs/topics/files.txt index fb3cdd4af9..492e6a20b5 100644 --- a/docs/topics/files.txt +++ b/docs/topics/files.txt @@ -27,6 +27,8 @@ to deal with that file. Consider the following model, using an :class:`~django.db.models.ImageField` to store a photo:: + from django.db import models + class Car(models.Model): name = models.CharField(max_length=255) price = models.DecimalField(max_digits=5, decimal_places=2) |
