from armstrong import hatband
from hatband_support import models
from django.forms.widgets import TextInput


class ArticleAdmin(hatband.ModelAdmin):

    class Meta:
        model = models.TestArticle


class ArticleOverrideAdmin(hatband.ModelAdmin):

    formfield_overrides = {
        models.TextField: {'widget': TextInput},
    }

    class Meta:
        model = models.TestArticle


class ArticleTabbedInline(hatband.TabbedInline):

    class Meta:
        model = models.TestArticle


class ArticleStackedInline(hatband.StackedInline):

    class Meta:
        model = models.TestArticle


class CategoryAdminTabbed(hatband.ModelAdmin):

    inlines = ArticleTabbedInline

    class Meta:
        model = models.TestCategory


class CategoryAdminStacked(hatband.ModelAdmin):

    inlines = ArticleStackedInline

    class Meta:
        model = models.TestCategory

from armstrong import hatband
from . import models
from django.db.models import TextField
from django.forms.widgets import TextInput


class ArticleAdmin(hatband.ModelAdmin):

    class Meta:
        model = models.TestArticle


class ArticleOverrideAdmin(hatband.ModelAdmin):

    formfield_overrides = {
        TextField: {'widget': TextInput},
    }

    class Meta:
        model = models.TestArticle


class ArticleTabularInline(hatband.TabularInline):

    class Meta:
        model = models.TestArticle


class ArticleStackedInline(hatband.StackedInline):

    class Meta:
        model = models.TestArticle


class CategoryAdminTabbed(hatband.ModelAdmin):

    inlines = ArticleTabularInline

    class Meta:
        model = models.TestCategory


class CategoryAdminStacked(hatband.ModelAdmin):

    inlines = ArticleStackedInline

    class Meta:
        model = models.TestCategory

Fix these class names and imports so it works
Fix these class names and imports so it works

  from armstrong import hatband
- from hatband_support import models
+ from . import models
+ from django.db.models import TextField
  from django.forms.widgets import TextInput
  
  
  class ArticleAdmin(hatband.ModelAdmin):
  
      class Meta:
          model = models.TestArticle
  
  
  class ArticleOverrideAdmin(hatband.ModelAdmin):
  
      formfield_overrides = {
-         models.TextField: {'widget': TextInput},
+         TextField: {'widget': TextInput},
      }
  
      class Meta:
          model = models.TestArticle
  
  
- class ArticleTabbedInline(hatband.TabbedInline):
+ class ArticleTabularInline(hatband.TabularInline):
  
      class Meta:
          model = models.TestArticle
  
  
  class ArticleStackedInline(hatband.StackedInline):
  
      class Meta:
          model = models.TestArticle
  
  
  class CategoryAdminTabbed(hatband.ModelAdmin):
  
-     inlines = ArticleTabbedInline
+     inlines = ArticleTabularInline
  
      class Meta:
          model = models.TestCategory
  
  
  class CategoryAdminStacked(hatband.ModelAdmin):
  
      inlines = ArticleStackedInline
  
      class Meta:
          model = models.TestCategory
  
Fix these class names and imports so it works
## Code Before:
from armstrong import hatband
from hatband_support import models
from django.forms.widgets import TextInput


class ArticleAdmin(hatband.ModelAdmin):

    class Meta:
        model = models.TestArticle


class ArticleOverrideAdmin(hatband.ModelAdmin):

    formfield_overrides = {
        models.TextField: {'widget': TextInput},
    }

    class Meta:
        model = models.TestArticle


class ArticleTabbedInline(hatband.TabbedInline):

    class Meta:
        model = models.TestArticle


class ArticleStackedInline(hatband.StackedInline):

    class Meta:
        model = models.TestArticle


class CategoryAdminTabbed(hatband.ModelAdmin):

    inlines = ArticleTabbedInline

    class Meta:
        model = models.TestCategory


class CategoryAdminStacked(hatband.ModelAdmin):

    inlines = ArticleStackedInline

    class Meta:
        model = models.TestCategory

## Instruction:
Fix these class names and imports so it works
## Code After:
from armstrong import hatband
from . import models
from django.db.models import TextField
from django.forms.widgets import TextInput


class ArticleAdmin(hatband.ModelAdmin):

    class Meta:
        model = models.TestArticle


class ArticleOverrideAdmin(hatband.ModelAdmin):

    formfield_overrides = {
        TextField: {'widget': TextInput},
    }

    class Meta:
        model = models.TestArticle


class ArticleTabularInline(hatband.TabularInline):

    class Meta:
        model = models.TestArticle


class ArticleStackedInline(hatband.StackedInline):

    class Meta:
        model = models.TestArticle


class CategoryAdminTabbed(hatband.ModelAdmin):

    inlines = ArticleTabularInline

    class Meta:
        model = models.TestCategory


class CategoryAdminStacked(hatband.ModelAdmin):

    inlines = ArticleStackedInline

    class Meta:
        model = models.TestCategory
