- from django.db import models
- # Create your models here.
- class MyRequest(models.Model):
- id = models.IntegerField(primary_key=True)
- name = models.CharField(max_length=10)
- sexy = models.BooleanField(default=False)
- def __str__(self):
- return self.name +" "+ str(self.sexy)
|