Skip to content

Instantly share code, notes, and snippets.

@borodedamie
Created October 25, 2021 18:03
Show Gist options
  • Save borodedamie/f212e9a7e8f1dd3cc060190ca4ad2ae4 to your computer and use it in GitHub Desktop.
Save borodedamie/f212e9a7e8f1dd3cc060190ca4ad2ae4 to your computer and use it in GitHub Desktop.
Django OCR Project models.py
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