Created
October 25, 2021 18:03
-
-
Save borodedamie/f212e9a7e8f1dd3cc060190ca4ad2ae4 to your computer and use it in GitHub Desktop.
Django OCR Project models.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.db import models | |
class Image(models.Model): | |
file = models.ImageField(upload_to='images') | |
uploaded = models.DateTimeField(auto_now_add=True) | |
def __str__(self): | |
return str(self.pk) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment