Skip to content

Commit f10b588

Browse files
committed
seems the callback doesn't always get passed these parameters. We weren't using them anyway so just remove them and rely on **kwargs
1 parent 069a8db commit f10b588

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

browse_and_upload_field/fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def formfield(self, **kwargs):
165165
}
166166
return super(FileBrowseAndUploadField, self).formfield(**defaults)
167167

168-
def upload_callback(self, sender, instance, created, using, **kwargs):
168+
def upload_callback(self, sender, instance, **kwargs):
169169

170170
opts = instance._meta
171171
field = getattr(instance, self.name)

0 commit comments

Comments
 (0)