Предоставьте набор форм, используемый в следующей функции [закрыто]

[17/Sep/2024 17:07:40] "GET /api/announcements/ HTTP/1.1" 200 299
POST data: <QueryDict: {'csrfmiddlewaretoken': ['JU9b2Ya9DZOVogoIXTSQ5BG4z8fvAmDnkkLReruwnkVKNx96gl52j6gbJJgOHblv', 'JU9b2Ya9DZOVogoIXTSQ5BG4z8fvAmDnkkLReruwnkVKNx96gl52j6gbJJgOHblv'], 'form-TOTAL_FORMS': ['1'], 'form-INITIAL_FORMS': ['0'], 'form-MIN_NUM_FORMS': ['0'], 'form-MAX_NUM_FORMS': ['1000'], 'form-0-charge_type': ['4'], 'form-0-charge_period': ['yearly'], 'form-0-charge_amount_type': ['measurement_charge'], 'form-0-charge_amount': ['580'], 'form-0-tax_type': ['Rem iure minima nobi'], 'form-0-tax_percentage': ['9'], 'form-0-start_date': ['2024-11-15'], 'form-0-end_date': ['2024-12-05'], 'form-0-total_amount': ['632.20'], 'form-0-invoice_choices': ['selected_member'], 'form-0-full_name': ['5', '7', '8', '12'], 'form-0-description': ['Pariatur Dolore accusamus modi esse nihil sint non ducimus ipsum voluptatum molestiae omnis'], 'form-0-area': [''], 'form-0-maintenance_per_sq_feet': [''], 'form-0-flats': [''], 'form-0-building': [''], 'submit': ['Save']}>
Form data: <QueryDict: {'csrfmiddlewaretoken': ['JU9b2Ya9DZOVogoIXTSQ5BG4z8fvAmDnkkLReruwnkVKNx96gl52j6gbJJgOHblv', 'JU9b2Ya9DZOVogoIXTSQ5BG4z8fvAmDnkkLReruwnkVKNx96gl52j6gbJJgOHblv'], 'form-TOTAL_FORMS': ['1'], 'form-INITIAL_FORMS': ['0'], 'form-MIN_NUM_FORMS': ['0'], 'form-MAX_NUM_FORMS': ['1000'], 'form-0-charge_type': ['4'], 'form-0-charge_period': ['yearly'], 'form-0-charge_amount_type': ['measurement_charge'], 'form-0-charge_amount': ['580'], 'form-0-tax_type': ['Rem iure minima nobi'], 'form-0-tax_percentage': ['9'], 'form-0-start_date': ['2024-11-15'], 'form-0-end_date': ['2024-12-05'], 'form-0-total_amount': ['632.20'], 'form-0-invoice_choices': ['selected_member'], 'form-0-full_name': ['5', '7', '8', '12'], 'form-0-description': ['Pariatur Dolore accusamus modi esse nihil sint non ducimus ipsum voluptatum molestiae omnis'], 'form-0-area': [''], 'form-0-maintenance_per_sq_feet': [''], 'form-0-flats': [''], 'form-0-building': [''], 'submit': ['Save']}>

Ошибки формы:

  • total_amount
  • Это поле обязательно для заполнения.
  • Formset data: <QueryDict: {'csrfmiddlewaretoken': ['JU9b2Ya9DZOVogoIXTSQ5BG4z8fvAmDnkkLReruwnkVKNx96gl52j6gbJJgOHblv', 'JU9b2Ya9DZOVogoIXTSQ5BG4z8fvAmDnkkLReruwnkVKNx96gl52j6gbJJgOHblv'], 'form-TOTAL_FORMS': ['1'], 'form-INITIAL_FORMS': ['0'], 'form-MIN_NUM_FORMS': ['0'], 'form-MAX_NUM_FORMS': ['1000'], 'form-0-charge_type': ['4'], 'form-0-charge_period': ['yearly'], 'form-0-charge_amount_type': ['measurement_charge'], 'form-0-charge_amount': ['580'], 'form-0-tax_type': ['Rem iure minima nobi'], 'form-0-tax_percentage': ['9'], 'form-0-start_date': ['2024-11-15'], 'form-0-end_date': ['2024-12-05'], 'form-0-total_amount': ['632.20'], 'form-0-invoice_choices': ['selected_member'], 'form-0-full_name': ['5', '7', '8', '12'], 'form-0-description': ['Pariatur Dolore accusamus modi esse nihil sint non ducimus ipsum voluptatum molestiae omnis'], 'form-0-area': [''], 'form-0-maintenance_per_sq_feet': [''], 'form-0-flats': [''], 'form-0-building': [''], 'submit': ['Save']}>
    Formset errors: [{}]
    Form is invalid.
    [17/Sep/2024 17:08:33] "POST /accounts/charges/add/ HTTP/1.1" 200 69693
    

    решите эту ошибку, чтобы форма была отправлена

    Вернуться на верх