Skip to content

Instantly share code, notes, and snippets.

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