|
@ -163,6 +163,13 @@ class ParlamentarCreateForm(ParlamentarForm): |
|
|
required=True, |
|
|
required=True, |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
class Meta(ParlamentarForm.Meta): |
|
|
|
|
|
widgets = { |
|
|
|
|
|
'fotografia': forms.ClearableFileInput(), |
|
|
|
|
|
'biografia': forms.Textarea( |
|
|
|
|
|
attrs={'id': 'texto-rico'}) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@transaction.atomic |
|
|
@transaction.atomic |
|
|
def save(self, commit=True): |
|
|
def save(self, commit=True): |
|
|
parlamentar = super(ParlamentarCreateForm, self).save(commit) |
|
|
parlamentar = super(ParlamentarCreateForm, self).save(commit) |
|
|