Shipra Shalini
Shipra Shalini
> there is no package for focal yet. you can as workaround: change the line on your sources.list from "focal" to "bionic". that might work For me it didn't work,...
@BurkovBA I tried passing primary key to Book, still the same result.
@BurkovBA I revisted my code and found that the Serializers were like this: ``` class AuthorSerializer(DocumentSerializer): class Meta: model = Author depth = 2 fields = '__all__' class BookSerializer(DocumentSerializer): class...
When depth is there, the serializer doesn't convert the ``` id``` to DBRef ```Author``` but rejects it, validated_data doesn't contain the ```Author``` field and there's no reference in the ```Book```...
If I have Document like: ``` from django_mongoengine import Document, fields class Dummy(Document): name = fields.StringField() value = fields.IntField(required=False) ``` And use data like: ```{ "name": "abc"}``` I still get...
@BurkovBA It's a simplified version of my requirement to get the point across. Using EmbeddedDocument will not be suitable as it is referenced by other models too. @qwiglydee I did...
Is there anyway to get the referenceField's data in validated_data so that I can override the create and update function to update/create the reference fields from the Parent DocumentSerializer? Also,...
I figured it out with ComboReferenceField, though it's not included in PyPI package.
I have configured apps according to the example app. I also noticed that there's no permissions collection in mongodb. The code seems fine, I have no clue why it's not...
> IIRC, the main piece remaining is deciding how to handle the [post-generation hooks](https://factoryboy.readthedocs.io/en/latest/reference.html#post-generation-hooks). @francoisfreitag Can this feature be released in parts? As in, first release the basic functionality and...