X-Git-Url: http://mmka.chem.univ.gda.pl/gitweb/?a=blobdiff_plain;f=filex%2Fforms.py;h=db6587bae44521fed47d380aaf331b5f81171db4;hb=a0feb25389615e9d2ab2b036a491a1aeeb059a52;hp=1c9ffe9e9b4ea4b9c08eb59abc945d2a7b52c3d7;hpb=a5eea24f30969c1434c7743516f0195aa4bc53ae;p=qcg-portal.git diff --git a/filex/forms.py b/filex/forms.py index 1c9ffe9..db6587b 100644 --- a/filex/forms.py +++ b/filex/forms.py @@ -1,6 +1,15 @@ # coding=utf-8 from django import forms +from filex.models import Favorite + + +class FavoriteForm(forms.ModelForm): + class Meta: + model = Favorite + fields = ('owner', 'host', 'path') + widgets = {'owner': forms.HiddenInput()} + class NewDirForm(forms.Form): host = forms.CharField(label=u'Host', max_length=256, widget=forms.HiddenInput())