Closed emieza closed 3 years ago
Term should be removed from model.
Admin backend for Enrolment model should show only the UFs related to the selected Career. If no career is selected, no UF will be showed.
The proper mechanism to use is formfield_for_manytomany https://docs.djangoproject.com/en/3.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_for_manytomany
followed in issue #20
Term should be removed from model.
Admin backend for Enrolment model should show only the UFs related to the selected Career. If no career is selected, no UF will be showed.
The proper mechanism to use is formfield_for_manytomany https://docs.djangoproject.com/en/3.2/ref/contrib/admin/#django.contrib.admin.ModelAdmin.formfield_for_manytomany