예제 #1
0
class Oferta(models.Model):
    id = models.IntegerFields()
    titulo = models.CharFields(max_length=100)
    fecha = models.DateField(auto_now=True, auto_now_add=True)
    descripcion = models.TextFields()
    requisitos = models.TextFields()
    lugardetrabajo = models.CharFields(max_length=100)
    beneficios = models.TextFields(null=True)
예제 #2
0
class PasswordResetLink(models.Model):
    user = models.OneToOneField(settings.AUTH_USER_MODEL,
                                on_delete=models.CASCADE,
                                primary_key=True)
    link = models.CharFields(max_length=50)

    def __str__(self):
        return 'Password rest link for ' + str(self.user)
예제 #3
0
class Question(models.Model):
    question_text = models.CharFields(max_length=200)
    pub_date = models.DateTimeField('date published')
예제 #4
0
class Localidad(models.Model):
    id = models.IntegerFields()
    nomb = models.CharFields(max_length=50)
예제 #5
0
class Provincia(models.Model):
    id = models.IntegerFields()
    nomb = models.CharFields(max_length=50)
예제 #6
0
class Quizmaker():
    username = models.CharFields(max_length=20)
예제 #7
0
class Question(models.Model):
    author = models.ForeignKey(to=Progile, on_delete=models.CASCADE)
    title = models.CharFields(max_lenght=128)
    created_at = models.DateTimeField()
예제 #8
0
class User():
    name = models.CharFields(max_length=150)
예제 #9
0
파일: utls.py 프로젝트: Samy4-byte/new
class User():
    name = models.CharFields(max=150)
예제 #10
0
class Quizmaker():
    username = models.CharFields(max_length=20)
    answer = models.ForeignKey(Answer, on_delete=models.CASCADE)
예제 #11
0
class Rubro(models.Model):
	id = models.IntegerFields()
	nomb = models.CharFields(max_length=50)
예제 #12
0
class Empresa(models.Model):
    razsoc = models.CharFields(max_lenght=50)
    mail = models.EmailFields(max_lenght=254)
    telef = models.IntegerFields()
    dire = models.CharFields(max_lenght=200, null=True)
    logo = models.ImageFields(upload_to="logos", null=True)