Add a form to upload goodreads data.
This commit is contained in:
parent
ea735fd570
commit
8bcd3da25e
5 changed files with 25 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue