anonajay's picture
Upload folder using huggingface_hub
c7b3de4 verified
Raw History Blame Contribute Delete
245 Bytes
from django.db import models
class Author(models.Model):
name = models.CharField(max_length=100)
class Post(models.Model):
title = models.CharField(max_length=100)
author = models.ForeignKey(Author, on_delete=models.CASCADE)