Simple django app to display links
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
366 B

  1. from django.contrib import admin
  2. # Register your models here.
  3. from linkstore.models import Category, Link
  4. class LinkInline(admin.TabularInline):
  5. model = Link
  6. extra = 4
  7. class CategoryAdmin(admin.ModelAdmin):
  8. fieldset = [(None, {"fields": ["name"]})]
  9. inlines = [LinkInline]
  10. admin.site.register(Link)
  11. admin.site.register(Category, CategoryAdmin)