from django.db import models

# Create your models here.
class SampleModel(models.Model):
    name=models.CharField(max_length=20)
    email=models.EmailField(max_length=100,unique=True)
    gender=models.CharField(choices=(("Male","Male"),("Female","Female")),max_length=10)
    
    def __str__(self):
        return self.name
ca9ae328c312cf1ba0193b7879299bcc853bbc22
<mask token>


class SampleModel(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class SampleModel(models.Model):
    <mask token>
    <mask token>
    <mask token>

    def __str__(self):
        return self.name

<mask token>


class SampleModel(models.Model):
    name = models.CharField(max_length=20)
    email = models.EmailField(max_length=100, unique=True)
    gender = models.CharField(choices=(('Male', 'Male'), ('Female',
        'Female')), max_length=10)

    def __str__(self):
        return self.name

from django.db import models


class SampleModel(models.Model):
    name = models.CharField(max_length=20)
    email = models.EmailField(max_length=100, unique=True)
    gender = models.CharField(choices=(('Male', 'Male'), ('Female',
        'Female')), max_length=10)

    def __str__(self):
        return self.name

from django.db import models

# Create your models here.
class SampleModel(models.Model):
    name=models.CharField(max_length=20)
    email=models.EmailField(max_length=100,unique=True)
    gender=models.CharField(choices=(("Male","Male"),("Female","Female")),max_length=10)
    
    def __str__(self):
        return self.name