feat: Re-add option to add animal

This commit is contained in:
2025-06-17 13:00:17 +02:00
parent 3bccb1e690
commit f16aa845d2
3 changed files with 16 additions and 12 deletions

View File

@@ -34,7 +34,6 @@ class AdoptionNoticeForm(forms.ModelForm):
}
class AdoptionNoticeFormAutoAnimal(AdoptionNoticeForm):
def __init__(self, *args, **kwargs):
super(AdoptionNoticeFormAutoAnimal, self).__init__(*args, **kwargs)
@@ -46,7 +45,6 @@ class AdoptionNoticeFormAutoAnimal(AdoptionNoticeForm):
self.fields["date_of_birth"].widget = DateInput(format=('%Y-%m-%d'))
class AnimalForm(forms.ModelForm):
template_name = "fellchensammlung/forms/form_snippets.html"
@@ -93,6 +91,7 @@ class ImageForm(forms.ModelForm):
class ReportAdoptionNoticeForm(forms.ModelForm):
template_name = "fellchensammlung/forms/form_snippets.html"
class Meta:
model = ReportAdoptionNotice
fields = ('reported_broken_rules', 'user_comment')
@@ -100,6 +99,7 @@ class ReportAdoptionNoticeForm(forms.ModelForm):
class ReportCommentForm(forms.ModelForm):
template_name = "fellchensammlung/forms/form_snippets.html"
class Meta:
model = ReportComment
fields = ('reported_broken_rules', 'user_comment')