Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
658 B
1
Indexable
Never
from django.db import models

# Create your models here.
from myapp.views import login


class registration(models.Model):
    name=models.CharField(max_length=100)
    email=models.CharField(max_length=100)
    phone=models.CharField(max_length=100)
    gender=models.CharField(max_length=100)
    district=models.CharField(max_length=100)
    image=models.FileField(max_length=500)
    LOGIN=models.ForeignKey(login,on_delete=models.CASCADE)

class complaint(models.Model):
    complaint=models.CharField(max_length=100)
    date=models.CharField(max_length=100)
    REGISTRATION=models.ForeignKey(registration,on_delete=models.CASCADE)