TianyiMoe/backend/randpic/models.py

11 lines
330 B
Python
Raw Normal View History

2024-04-27 07:50:22 +00:00
from django.db import models
# Create your models here.
2024-04-29 06:12:41 +00:00
class Picture(models.Model):
name = models.CharField(max_length=100)
description = models.TextField()
author = models.CharField(max_length=100)
2024-04-30 01:05:28 +00:00
author_url=models.URLField()
2024-04-29 06:12:41 +00:00
original_url = models.URLField()
def __str__(self):
2024-04-30 01:05:28 +00:00
return self.name