models.py 294 B

12345678910
  1. from django.db import models
  2. # Create your models here.
  3. class MyRequest(models.Model):
  4. id = models.IntegerField(primary_key=True)
  5. name = models.CharField(max_length=10)
  6. sexy = models.BooleanField(default=False)
  7. def __str__(self):
  8. return self.name +" "+ str(self.sexy)