Ejemplo n.º 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
Ejemplo n.º 2
0
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.",
        }
Ejemplo n.º 3
0
class InstitutionAdminForm(ModelForm):
    application_areas = ApplicationAreasChoiceField(required=False)
    topics = TopicsChoiceField(required=False)
Ejemplo n.º 4
0
class ProfileAdminForm(ModelForm):
    application_areas = ApplicationAreasChoiceField(required=False)
    topics = TopicsChoiceField(required=False)
    membership_tags = MembershipTagsChoiceField(required=False)
Ejemplo n.º 5
0
class CourseAdminForm(ModelForm):
    topics = TopicsChoiceField(required=False)
Ejemplo n.º 6
0
class SessionProposalAdminForm(ModelForm):
    application_areas = ApplicationAreasChoiceField(required=False)
    topics = TopicsChoiceField(required=False)