Vincent Lefoulon

Results 37 issues of Vincent Lefoulon

Hi! I have the following models: ```python class A(Document): name = StringField() class Embedded(EmbeddedDocument): ref = ReferenceField('A', reverse_delete_rule=DENY) class B(Document): children = MapField(EmbeddedDocumentField('Embedded')) ``` But I obtain the error: ```...

Hi! Thanks for this project! It would be nice to be able to disable tracking on some pages based on some conditions. For instance, disabling tracking on some pages for...

It would be nice to be able to include pages to the docs with the same menu as in the index. ### Expected Behavior ![A notebook included to the docs.](https://user-images.githubusercontent.com/6124369/66043798-6f44ba00-e520-11e9-865a-f690a3b35b0e.png)...

enhancement

Hi! `PolymorphicModelBase.__new__()` ([here](https://github.com/django-polymorphic/django-polymorphic/blob/master/polymorphic/base.py#L60)) does not take additional keyword arguments. It makes it impossible to use `__init_subclass__()` method like this: ```python class MyModel(models.Model): def __init_subclass__(cls, *, name, **kwargs): cls.name = name...

Hi! Thanks for this great package! Here is an enhancement proposal: being able to filter by a reverse many-to-many relation. For instance: ```python class Publication(models.Model): title = models.CharField(max_length=30) class Article(models.Model):...

A test for #239. It fails. The field with the `unique_with` parameter has a `UniqueValidator` in the serializer whereas it shouldn't. ```python TestSerializer(): id = ObjectIdField(read_only=True) ref1 = ReferenceField(queryset=ReferencedDoc.objects, required=True,...

```python class Parent(Document): name = fields.StringField(required=True) meta = { 'indexes': [ { 'fields': ['name'], 'unique': True, }, ], 'allow_inheritance': True, } class Child(Parent): pass class ChildSerializer(DocumentSerializer): class Meta: model =...

documentation

```python class Parent(Document): ref = ReferenceField('Child', reverse_delete_rule=DENY) ``` `DELETE /children/{id}/` raises an exception: ``` Traceback (most recent call last): File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner response = get_response(request) File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/django/core/handlers/base.py",...

When an index is created on a model, Mongoengine may raise `NotUniqueError`. Currently, the exception is not caught. It should be and the API should return with the `400` code.

bug