Ticket #7738: 7738.diff

File 7738.diff, 542 bytes (added by gkelly, 16 years ago)

Patch for when exception is caught, f would be undefined.

  • django/contrib/admin/options.py

     
    510510                try:
    511511                    f = opts.get_field(k)
    512512                except FieldDoesNotExist:
    513                     pass
     513                    continue
    514514                if isinstance(f, models.ManyToManyField):
    515515                    initial[k] = initial[k].split(",")
    516516            form = ModelForm(initial=initial)
Back to Top