db.models.FilePathField.match

FilePathField.match

Optional. A regular expression, as a string, that FilePathField will use to filter filenames. Note that the regex will be applied to the base filename, not the full path. Example: "foo.*\.txt$", which will match a file called foo23.txt but not bar.txt or foo23.png.

doc_Django
2016-10-09 18:35:37
Comments
Leave a Comment

Please login to continue.