1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Eliminated the need to modify a model forms test when new test files are added.

This commit is contained in:
Tim Graham
2018-02-28 10:24:19 -05:00
parent 5cc28dc752
commit 3fb718f17d
2 changed files with 3 additions and 7 deletions

View File

@@ -151,7 +151,7 @@ class CustomFF(models.Model):
class FilePathModel(models.Model):
path = models.FilePathField(path=os.path.dirname(__file__), match=r".*\.py$", blank=True)
path = models.FilePathField(path=os.path.dirname(__file__), match='models.py', blank=True)
try: