Exemplo n.º 1
0
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()
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
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()
Exemplo n.º 4
0
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()
Exemplo n.º 5
0
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