Exemple #1
0
class JobAdminForm(ModelForm):
    application_areas = ApplicationAreasChoiceField(required=False)
    career_levels = JobPositionChoiceField(required=False)
    topics = TopicsChoiceField(required=False)

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.fields["add_to_euraxess"].label = "Add to EURAXESS"
        self.fields["created_by"].required = True
class VideoAdminForm(ModelForm):
    application_areas = ApplicationAreasChoiceField(required=False)
    topics = TopicsChoiceField(required=False)

    class Meta:
        help_texts = {
            "is_expert":
            "If checked, the video will be shown on the press area.",
        }
class InstitutionAdminForm(ModelForm):
    application_areas = ApplicationAreasChoiceField(required=False)
    topics = TopicsChoiceField(required=False)
Exemple #4
0
class ProfileAdminForm(ModelForm):
    application_areas = ApplicationAreasChoiceField(required=False)
    topics = TopicsChoiceField(required=False)
    membership_tags = MembershipTagsChoiceField(required=False)
Exemple #5
0
class SessionProposalAdminForm(ModelForm):
    application_areas = ApplicationAreasChoiceField(required=False)
    topics = TopicsChoiceField(required=False)