class Service(models.Model): _id = models.ObjectIdField() service_name = models.TextField() service_img = models.TextField() service_price = models.TextField() objects = models.DjongoManager() service_price = models.TextField()
class TipCommints(models.Model): _id = models.ObjectIdField() tip_id = models.TextField() user_name = models.TextField() commint_text = models.TextField() objects = models.DjongoManager() commintdate = models.DateTimeField(auto_now=True)
class UserProducts(models.Model): _id = models.ObjectIdField() user_id = models.TextField() # product_id = models.TextField() user_products = models.TextField() user_product_location = models.TextField() # user_product_quantity = models.IntegerField() objects = models.DjongoManager()
class QuizQuestions(models.Model): category = models.CharField(blank=True, null=True, max_length=250) type = models.CharField(blank=True, null=True, max_length=250) difficulty = models.CharField(blank=True, null=True, max_length=250) question = models.CharField(blank=True, null=True, max_length=250) correct_answer = models.CharField(blank=True, null=True, max_length=250) incorrect_answers = ArrayField(models.CharField(max_length=10, blank=True),size=8) objects = models.DjongoManager()
class Entry(models.Model): blog = models.EmbeddedModelField(model_container=Blog, model_form_class=BlogForm) headline = models.CharField(max_length=255) objects = models.DjongoManager() def __str__(self): ''' Convert object to string ''' return self.headline