|
@ -57,25 +57,22 @@ class LibraryForm(ModelForm): |
|
|
|
|
|
|
|
|
class Meta: |
|
|
class Meta: |
|
|
model = Library |
|
|
model = Library |
|
|
exclude = ('realname', 'email', 'username', 'type', 'granted',\ |
|
|
|
|
|
'granted_date', 'survey_mail_send', 'service_id') |
|
|
|
|
|
|
|
|
fields = ['cost', 'library', 'duration', 'notes'] |
|
|
|
|
|
|
|
|
class IFGForm(ModelForm): |
|
|
class IFGForm(ModelForm): |
|
|
class Meta: |
|
|
class Meta: |
|
|
model = IFG |
|
|
model = IFG |
|
|
exclude = ('realname', 'email', 'username', 'granted', 'granted_date',\ |
|
|
|
|
|
'service_id', 'survey_mail_send') |
|
|
|
|
|
|
|
|
fields = ['cost', 'url', 'notes'] |
|
|
|
|
|
|
|
|
class HonoraryCertificateForm(ModelForm): |
|
|
class HonoraryCertificateForm(ModelForm): |
|
|
class Meta: |
|
|
class Meta: |
|
|
model = HonoraryCertificate |
|
|
model = HonoraryCertificate |
|
|
fields = ['request_url', 'project'] |
|
|
fields = ['request_url', 'project'] |
|
|
# exclude = ('realname', 'email', 'username', 'granted', 'granted_date', 'survey_mail_send') |
|
|
|
|
|
|
|
|
|
|
|
class LiteratureForm(ModelForm): |
|
|
class LiteratureForm(ModelForm): |
|
|
class Meta: |
|
|
class Meta: |
|
|
model = Literature |
|
|
model = Literature |
|
|
fields = ['cost', 'notes', 'info', 'source'] |
|
|
|
|
|
|
|
|
fields = ['cost', 'info', 'source', 'notes'] |
|
|
|
|
|
|
|
|
class EmailForm(ModelForm): |
|
|
class EmailForm(ModelForm): |
|
|
# TODO: add some javascript to show/hide other-field |
|
|
# TODO: add some javascript to show/hide other-field |
|
@ -86,7 +83,6 @@ class EmailForm(ModelForm): |
|
|
class Meta: |
|
|
class Meta: |
|
|
model = Email |
|
|
model = Email |
|
|
fields = ['domain', 'address', 'other'] |
|
|
fields = ['domain', 'address', 'other'] |
|
|
# exclude = ('realname', 'email', 'username', 'granted', 'granted_date', 'survey_mail_send') |
|
|
|
|
|
|
|
|
|
|
|
class BusinessCardForm(ModelForm): |
|
|
class BusinessCardForm(ModelForm): |
|
|
class Meta: |
|
|
class Meta: |
|
|