from django.contrib import admin

# Register your models here.

from django.contrib import admin
from game.models import *

class LocationAdmin(admin.ModelAdmin):
    model = Location

admin.site.register(Location, LocationAdmin)

class DetailAdmin(admin.ModelAdmin):

    model = Detail

admin.site.register(Detail, DetailAdmin)

Add models to Admin Panel
Add models to Admin Panel

  from django.contrib import admin
+ from game.models import *
  
- # Register your models here.
+ class LocationAdmin(admin.ModelAdmin):
+     model = Location
  
+ admin.site.register(Location, LocationAdmin)
+ 
+ class DetailAdmin(admin.ModelAdmin):
+ 
+     model = Detail
+ 
+ admin.site.register(Detail, DetailAdmin)
+ 
Add models to Admin Panel
## Code Before:
from django.contrib import admin

# Register your models here.

## Instruction:
Add models to Admin Panel
## Code After:
from django.contrib import admin
from game.models import *

class LocationAdmin(admin.ModelAdmin):
    model = Location

admin.site.register(Location, LocationAdmin)

class DetailAdmin(admin.ModelAdmin):

    model = Detail

admin.site.register(Detail, DetailAdmin)
