diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index c0cfc2fad6..aae143b86e 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)