Created
October 25, 2021 18:08
-
-
Save borodedamie/05fd497f6ceed7b20cd7788257ebb706 to your computer and use it in GitHub Desktop.
Django OCR Project app forms.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.forms import ModelForm | |
from .models import Image | |
class ImageForm(ModelForm): | |
class Meta: | |
model = Image | |
fields = ['file'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment