19 lines
522 B
Python
19 lines
522 B
Python
from django.db import models
|
|
|
|
class ExcelEntry(models.Model):
|
|
name = models.CharField(max_length=100)
|
|
age = models.IntegerField()
|
|
email = models.EmailField()
|
|
date_joined = models.DateField(auto_now_add=True)
|
|
|
|
def __str__(self):
|
|
return self.name
|
|
|
|
class SecondTableEntry(models.Model):
|
|
name = models.CharField(max_length=100)
|
|
age = models.IntegerField()
|
|
email = models.EmailField()
|
|
date_joined = models.DateField(auto_now_add=True)
|
|
|
|
def __str__(self):
|
|
return self.name |