Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #1540 -- Fixed typos in docs/db-api.txt. Thanks, pb

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2670 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a0485f5c4f4602f93115e147f780df2811a8380a 1 parent 8ac114c
Adrian Holovaty authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  docs/db-api.txt
4  docs/db-api.txt
@@ -604,14 +604,14 @@ returns an empty string.
604 604
 get_FOO_size()
605 605
 --------------
606 606
 
607  
-For every ``FileField``, the object will have a ``get_FOO_filename()`` method,
  607
+For every ``FileField``, the object will have a ``get_FOO_size()`` method,
608 608
 where ``FOO`` is the name of the field. This returns the size of the file, in
609 609
 bytes. (Behind the scenes, it uses ``os.path.getsize``.)
610 610
 
611 611
 save_FOO_file(filename, raw_contents)
612 612
 -------------------------------------
613 613
 
614  
-For every ``FileField``, the object will have a ``get_FOO_filename()`` method,
  614
+For every ``FileField``, the object will have a ``save_FOO_file()`` method,
615 615
 where ``FOO`` is the name of the field. This saves the given file to the
616 616
 filesystem, using the given filename. If a file with the given filename already
617 617
 exists, Django adds an underscore to the end of the filename (but before the

0 notes on commit a0485f5

Please sign in to comment.
Something went wrong with that request. Please try again.