1
0
Fork 0

Add a form to upload goodreads data.

This commit is contained in:
Adam Kelly 2020-03-23 16:40:09 +00:00
parent ea735fd570
commit 8bcd3da25e
5 changed files with 25 additions and 0 deletions

View file

@ -1,6 +1,7 @@
''' usin django model forms '''
from django.core.validators import MaxValueValidator, MinValueValidator
from django.forms import ModelForm, PasswordInput, IntegerField
from django import forms
from fedireads import models
@ -73,3 +74,6 @@ class TagForm(ModelForm):
help_texts = {f: None for f in fields}
labels = {'name': 'Add a tag'}
class ImportForm(forms.Form):
csv_file = forms.FileField()