# django.core.exceptions.ImproperlyConfigured: 'MyInline' must subclass 'InlineModelAdmin'.

- **ID:** `python/django-admin-inline-error`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Defining an inline in admin.py without inheriting from appropriate inline class.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 3.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   Subclass TabularInline or StackedInline: class MyInline(admin.TabularInline): model = MyModel
   ```
2. **** (90% success)
   ```
   Ensure to import from django.contrib import admin.
   ```

## Dead Ends

- **** — May not provide the necessary functionality; should use TabularInline or StackedInline. (80% fail)
- **** — Loses admin functionality. (70% fail)
