diff options
| author | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-14 13:42:57 -0700 | 
|---|---|---|
| committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-05-14 13:43:07 -0700 | 
| commit | c01a4ba190cc18a8186545ebb55c35864676b538 (patch) | |
| tree | 6ec59ce457bcaa50932f04c44fd781a53ae33c52 /python/fatcat_web | |
| parent | 3ee54189b665d37933b6108fb85b28bb823dac4a (diff) | |
| download | fatcat-c01a4ba190cc18a8186545ebb55c35864676b538.tar.gz fatcat-c01a4ba190cc18a8186545ebb55c35864676b538.zip | |
python impl
Diffstat (limited to 'python/fatcat_web')
| -rw-r--r-- | python/fatcat_web/forms.py | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/python/fatcat_web/forms.py b/python/fatcat_web/forms.py index e22476ce..fb7c1116 100644 --- a/python/fatcat_web/forms.py +++ b/python/fatcat_web/forms.py @@ -9,7 +9,7 @@ from wtforms import SelectField, DateField, StringField, IntegerField, \      HiddenField, FormField, FieldList, validators  from fatcat_client import ContainerEntity, CreatorEntity, FileEntity, \ -    ReleaseEntity, ReleaseContrib, FileEntityUrls, ReleaseEntityExtIds +    ReleaseEntity, ReleaseContrib, FileUrl, ReleaseExtIds  release_type_options = [      ('', 'Unknown'), @@ -132,7 +132,7 @@ class ReleaseEntityForm(EntityEditForm):      def to_entity(self):          assert(self.title.data) -        entity = ReleaseEntity(title=self.title.data, ext_ids=ReleaseEntityExtIds()) +        entity = ReleaseEntity(title=self.title.data, ext_ids=ReleaseExtIds())          self.update_entity(entity)          return entity @@ -327,7 +327,7 @@ class FileEntityForm(EntityEditForm):              setattr(fe, simple_attr, a)          fe.urls = []          for u in self.urls: -            fe.urls.append(FileEntityUrls( +            fe.urls.append(FileUrl(                  rel=u.rel.data or None,                  url=u.url.data or None,              )) | 
