Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class PublicationForm(forms.ModelForm):
- journal = forms.ModelChoiceField(label=_('Журналы'),
- queryset=Journal.objects.filter(expiry_date__gte=datetime.date.today(), ),
- widget=forms.Select(attrs={
- "name": "journal",
- "id": "journal",
- "class": "form-control",
- "autofocus": "autofocus",
- }))
- class Meta:
- model = Publication
- fields = (
- 'title', 'title_en', 'title_ky', 'journal', 'annotation', 'annotation_en', 'annotation_ky', 'keywords',
- 'keywords_en', 'keywords_ky', 'file')
Advertisement
Add Comment
Please, Sign In to add comment