From 671cd6abd254bb55b639a622d874acfdfa7d8252 Mon Sep 17 00:00:00 2001 From: Gaurav Mishra Date: Wed, 22 Apr 2020 09:48:32 +0530 Subject: [PATCH 1/4] Fix AppRegistryNotReady error The checks that Djongo runs on the `model_container` requires all apps to be loaded, but the checks are run while the models are being loaded. The app can, therefore, not start. This PR addresses this issue. --- djongo/models/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/djongo/models/fields.py b/djongo/models/fields.py index 404d4e49..064b8b49 100644 --- a/djongo/models/fields.py +++ b/djongo/models/fields.py @@ -107,7 +107,7 @@ def __init__(self, super().__init__(*args, **kwargs) def _validate_container(self): - for field in self.model_container._meta.get_fields(): + for field in self.model_container._meta._get_fields(reverse=False): if isinstance(field, (AutoField, BigAutoField, RelatedField)): From b3a97f89950aea691a9f49e3201714fd57233bb8 Mon Sep 17 00:00:00 2001 From: nesdis Date: Mon, 11 May 2020 11:28:11 +0200 Subject: [PATCH 2/4] Update no-response.yml --- no-response.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/no-response.yml b/no-response.yml index c05a7539..d2ce1225 100644 --- a/no-response.yml +++ b/no-response.yml @@ -1,5 +1,5 @@ # Number of days of inactivity before an Issue is closed for lack of response -daysUntilClose: 14 +daysUntilClose: 7 # Label requiring a response responseRequiredLabel: more-information-needed # Comment to post when closing an Issue for lack of response. Set to `false` to disable From 9e7d093040b5a1b1b90985e5fac1d2bb4940ce17 Mon Sep 17 00:00:00 2001 From: nesdis Date: Mon, 11 May 2020 11:29:03 +0200 Subject: [PATCH 3/4] Update no-response.yml --- no-response.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/no-response.yml b/no-response.yml index d2ce1225..f4b26fa7 100644 --- a/no-response.yml +++ b/no-response.yml @@ -1,7 +1,7 @@ # Number of days of inactivity before an Issue is closed for lack of response daysUntilClose: 7 # Label requiring a response -responseRequiredLabel: more-information-needed +responseRequiredLabel: more-info-needed # Comment to post when closing an Issue for lack of response. Set to `false` to disable closeComment: > This issue has been automatically closed because there has been no response From b67cea23b841d68e1832c42d19b45d995ac4a796 Mon Sep 17 00:00:00 2001 From: nesdis Date: Mon, 1 Jun 2020 15:45:52 +0200 Subject: [PATCH 4/4] Support for Django 3.0 - Test cases to protect Djongo core 1.3 --- docs/docs/home.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/home.md b/docs/docs/home.md index a451c6cd..27722577 100644 --- a/docs/docs/home.md +++ b/docs/docs/home.md @@ -3,13 +3,13 @@ permalink: / layout: splash title: "Django MongoDB connector" excerpt: "Djongo" -description: "Djongo is specifically meant to be used with the original Django ORM and MongoDB. Using the Django admin app one can directly add and modify documents stored in MongoDB. Other contrib modules such as Auth and Sessions work without any changes" +description: "Djongo is a python Object Document Mapper (ODM) to be used with Django and MongoDB. Use Django Admin to directly add and modify documents stored in MongoDB. Use other contrib modules such as Auth and Sessions without any changes" header: overlay_image: /assets/images/landing-banner3.jpg punchline: - - excerpt: The only connector that let's you use Django with MongoDB *without* changing the Django ORM. + - excerpt: A python Object Document Mapper (ODM) that let's you use Django with MongoDB *without* changing the Django ORM. feature_row1: