Closed Karmak23 closed 11 years ago
You can either use the newest github version of mongodbforms or fix it yourself by changing the last if statement in _setup_document_fields
in documentoptions.py
to:
if isinstance(f, ReferenceField) and not isinstance(f.document_type._meta, DocumentMetaWrapper) \
and self.document != f.document_type:
f.document_type._meta = DocumentMetaWrapper(f.document_type)
A new version of mongodbforms is coming, but there is one more bug that needs fixing and some thought before.
Hi,
We encounter a crash with the following code:
in
models
:in
admin.py
:Stacktrace of the crash. If I change the referencefield of the
duplicate_of
attribute to'self'
instead of'Tag'
, I get another stacktrace crash, but I think it's basically the same problem.It doesn't occur if I use
ListField(ReferenceField(… [same content]…))
, but obviously I do not want to use a list.Any hint on this one ?
regards,