djongo
djongo copied to clipboard
array field issue
class Service(models.Model): service_type = models.CharField(max_length=50) country = models.CharField(max_length=60) state = models.CharField(max_length=60) website = models.CharField(max_length=100) request_date = models.DateTimeField(verbose_name="Enquiry Date", auto_now_add = True) response = models.BooleanField(default=False)
class Meta:
abstract = True
def __str__(self):
return str(self.service_type)
class serviceData(models.Model): username = models.ForeignKey(settings.AUTH_USER_MODEL,on_delete=models.CASCADE) service = models.ArrayField(model_container = Service)
def __str__(self):
return str(self.username)
sorry to say package has many issues put to solve this issue and similar to it like there's examples in the documentation working fine but you couldn't apply them correctly you should work with match versions of django and djongo django-2.2.16 && djongo-1.3.1 be aware while installing djongo, because in the installtion it will change django version to what is needs but in all cases it choose wrong version be sure to install django-2.2.16 && djongo-1.3.1
sorry to say package has many issues put to solve this issue and similar to it like there's examples in the documentation working fine but you couldn't apply them correctly you should work with match versions of django and djongo django-2.2.16 && djongo-1.3.1 be aware while installing djongo, because in the installtion it will change django version to what is needs but in all cases it choose wrong version be sure to install django-2.2.16 && djongo-1.3.1
I still have problems with these two versions together. Is it still having problems with django-3?
sorry to say package has many issues put to solve this issue and similar to it like there's examples in the documentation working fine but you couldn't apply them correctly you should work with match versions of django and djongo django-2.2.16 && djongo-1.3.1 be aware while installing djongo, because in the installtion it will change django version to what is needs but in all cases it choose wrong version be sure to install django-2.2.16 && djongo-1.3.1
This is not working. It not supporting database engine of djongo.