diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index c0cfc2fad61..aae143b86ec 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -510,7 +510,7 @@ class ModelAdmin(BaseModelAdmin): try: f = opts.get_field(k) except FieldDoesNotExist: - pass + continue if isinstance(f, models.ManyToManyField): initial[k] = initial[k].split(",") form = ModelForm(initial=initial)