django-mongonaut
django-mongonaut copied to clipboard
Field's value gets replaced by Model's name if the name of field is 'name'
If I have a Document similar to this:
class MyDocument(Document):
name = fields.StringField()
The value of 'name' is changed to 'MyDocument' i.e. the name of the Document itself.
I am also facing the same issue. Will be great if you guys can point me in the right direction.
Do you have any more details on the issue?
If I create a admin page for the above example
class MyDocument(Document): name = fields.StringField()
and set name = "My name" is the form when create or updating a new MyDocument, name field is still set as MyDocument.
i.e. document.name is always MyDocument no matter what I set it to.