from django.contrib import admin

from topics.models import Issue, StoryPointer, Stream, Topic

admin.site.register(Topic)
admin.site.register(Issue)
admin.site.register(Stream)
admin.site.register(StoryPointer)

from django.contrib import admin

from topics.models import Issue, StoryPointer, Stream, Topic


@admin.register(Issue)
class IssueAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}

admin.site.register(Topic)
admin.site.register(Stream)
admin.site.register(StoryPointer)

Move Issue ModelAdmin to new register syntax
Move Issue ModelAdmin to new register syntax

  from django.contrib import admin
  
  from topics.models import Issue, StoryPointer, Stream, Topic
  
+ 
+ @admin.register(Issue)
+ class IssueAdmin(admin.ModelAdmin):
+     prepopulated_fields = {'slug': ('name',)}
+ 
  admin.site.register(Topic)
- admin.site.register(Issue)
  admin.site.register(Stream)
  admin.site.register(StoryPointer)
  
Move Issue ModelAdmin to new register syntax
## Code Before:
from django.contrib import admin

from topics.models import Issue, StoryPointer, Stream, Topic

admin.site.register(Topic)
admin.site.register(Issue)
admin.site.register(Stream)
admin.site.register(StoryPointer)

## Instruction:
Move Issue ModelAdmin to new register syntax
## Code After:
from django.contrib import admin

from topics.models import Issue, StoryPointer, Stream, Topic


@admin.register(Issue)
class IssueAdmin(admin.ModelAdmin):
    prepopulated_fields = {'slug': ('name',)}

admin.site.register(Topic)
admin.site.register(Stream)
admin.site.register(StoryPointer)
