В
Size: a a a
В
DT
country_obj, created = Country.objects.get_or_create(name_country=country_form.cleaned_data["name_country"])
В
country_obj, created = Country.objects.get_or_create(name_country=country_form.cleaned_data["name_country"])
ИХ
DT
ИХ
DT
ИХ
b
AG
ИХ
ИХ
views.py
def get(self, request, *args, **kwargs):
self.object = None
form_class = self.get_form_class()
form = self.get_form(form_class)
malware_communications = incident_forms.MalwareCommunicationFormSet()
return self.render_to_response(
self.get_context_data(
form=form,
malware_communications=malware_communications
)
)
html:
<div id="malware_tab1" class="tab">
{{ malware_communications.management_form }}
{{ malware_communications.non_form_errors }}
<div class="table-body">
{%- for form in malware_communications -%}
<div class="table-row">
<div class="table-cell">
<input type="checkbox" name="">
</div>
<div class="table-cell">
{{ form.communication_ip }}
</div>
<div class="table-cell">
{{ form.communication_url }}
</div>
<div class="table-cell">
{{ form.communication_domain }}
</div>
</div>
{%- endfor -%}
</div>
DT
views.py
def get(self, request, *args, **kwargs):
self.object = None
form_class = self.get_form_class()
form = self.get_form(form_class)
malware_communications = incident_forms.MalwareCommunicationFormSet()
return self.render_to_response(
self.get_context_data(
form=form,
malware_communications=malware_communications
)
)
html:
<div id="malware_tab1" class="tab">
{{ malware_communications.management_form }}
{{ malware_communications.non_form_errors }}
<div class="table-body">
{%- for form in malware_communications -%}
<div class="table-row">
<div class="table-cell">
<input type="checkbox" name="">
</div>
<div class="table-cell">
{{ form.communication_ip }}
</div>
<div class="table-cell">
{{ form.communication_url }}
</div>
<div class="table-cell">
{{ form.communication_domain }}
</div>
</div>
{%- endfor -%}
</div>
ИХ
DT
{{ malware_communications.non_form_errors() }}
S
S
ИХ
{{ malware_communications.non_form_errors() }}
AG