Pārlūkot izejas kodu

Update recipe_file_uploads.rst

We have to change field name from 'file' into 'filename' while we need field 'file' to be not mapped. Field 'file' is only temporary to store UploadedFile instance.
trujamii 10 gadi atpakaļ
vecāks
revīzija
42e7c22b64
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      Resources/doc/cookbook/recipe_file_uploads.rst

+ 1 - 1
Resources/doc/cookbook/recipe_file_uploads.rst

@@ -56,7 +56,7 @@ upload timestamp.
               type:         integer
               generator:    { strategy: AUTO }
           fields:
-            file:
+            filename:
               type:         string
               length:       100
             updated:        # changed when files are uploaded, to force preUpdate and postUpdate to fire