admin.py 289 B

123456789101112131415
  1. from django.contrib import admin
  2. from .models import Good, Image,GoodImage
  3. @admin.register(Good)
  4. class GoodAdmin(admin.ModelAdmin):
  5. pass
  6. @admin.register(Image)
  7. class ImageAdmin(admin.ModelAdmin):
  8. pass
  9. @admin.register(GoodImage)
  10. class GoodImageAdmin(admin.ModelAdmin):
  11. pass