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.

20 lines
381 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 = [
  9. (None, {'fields': ['name']}),
  10. ]
  11. inlines = [LinkInline]
  12. admin.site.register(Link)
  13. admin.site.register(Category, CategoryAdmin)