Skip to content

Commit 71ca059

Browse files
committed
Fixed bug due to change in MongoFormFieldGenerator's generate() method
1 parent 7d485e8 commit 71ca059

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mongodbforms/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def get_document_options(document):
1717
class MongoFormFieldGenerator(MongotoolsGenerator):
1818
"""This class generates Django form-fields for mongoengine-fields."""
1919

20-
def generate(self, field_name, field, **kwargs):
20+
def generate(self, field, **kwargs):
2121
"""Tries to lookup a matching formfield generator (lowercase
2222
field-classname) and raises a NotImplementedError of no generator
2323
can be found.

0 commit comments

Comments
 (0)