djongo icon indicating copy to clipboard operation
djongo copied to clipboard

array field issue

Open paramjeet01 opened this issue 4 years ago • 4 comments

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)

paramjeet01 avatar Oct 21 '20 18:10 paramjeet01

Capture

paramjeet01 avatar Oct 21 '20 18:10 paramjeet01

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

MohammedMohammedBayomy avatar Oct 24 '20 17:10 MohammedMohammedBayomy

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?

kooshan75 avatar Nov 22 '20 20:11 kooshan75

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.

nidhishah989 avatar Jul 21 '21 09:07 nidhishah989