Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

697
Views
Faltan datos de ManagementForm o se han manipulado. Campos faltantes: servicesprice_set-TOTAL_FORMS

Cuando estoy cambiando y guardando de Inclusive a Exclusive Django admin, aparece el siguiente error:

 (Hidden field TOTAL_FORMS) This field is required. (Hidden field INITIAL_FORMS) This field is required. ManagementForm data is missing or has been tampered with. Missing fields: servicesprice_set-TOTAL_FORMS, servicesprice_set-INITIAL_FORMS. You may need to file a bug report if the issue persists.

ingrese la descripción de la imagen aquí

Esto sucede después de anular el campo en línea. ¿Qué significa esto?

 @admin.register(Services) class ServicesAdmin(ImportExportModelAdmin, EmptyFieldListFilter): ... inlines = [ SubServiceInline, ServicePriceInline ] ExclusiveInlines = [ ExclusiveServicePriceInline ] InclusiveInlines = [] ... def get_inlines(self, request, obj): if not obj.parent_id: return self.inlines elif obj.type == 1: return self.InclusiveInlines else: return self.ExclusiveInlines
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Soy bastante nuevo aquí, pero he estado luchando con el mismo problema hoy.

Resulta que se llama a MyModelAdmin.get_inline() antes que a MyModel.save() cuando está guardando a través del panel de administración de esa manera.

Esto crea un conflicto cuando agrega un InlineAdmin para un modelo relacionado que, en mi caso, no se creó hasta que se llamó a la función MyModel.save() .

Espero haberte ayudado y me gustaría poder explicarlo mejor. Estoy aprendiendo todo esto, yo mismo. :)

¡Buena suerte para ti!

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!