# django__django-10924
# Loki Mode Multi-Agent Patch
# Attempts: 1

--- a/django/db/models/fields/__init__.py
+++ b/django/db/models/fields/__init__.py
@@ -1695,7 +1695,7 @@ class FilePathField(Field):
     def __init__(self, verbose_name=None, name=None, path='', match=None,
                  recursive=False, allow_files=True, allow_folders=False, **kwargs):
         self.path, self.match, self.recursive = path, match, recursive
         self.allow_files, self.allow_folders = allow_files, allow_folders
         kwargs.setdefault('max_length', 100)
         super().__init__(verbose_name, name, **kwargs)
 
@@ -1713,7 +1713,8 @@ class FilePathField(Field):
         return name, path, args, kwargs
 
     def formfield(self, **kwargs):
+        path = self.path() if callable(self.path) else self.path
         return super().formfield(**{
-            'path': self.path,
+            'path': path,
             'match': self.match,
             'recursive': self.recursive,
             'allow_files': self.allow_files,