Skip to content

Commit

Permalink
feat(#87): Now display all fields of stores on store admin page
Browse files Browse the repository at this point in the history
  • Loading branch information
Evanlab02 committed Nov 20, 2024
1 parent a3ab09b commit 3a932c3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion backend/stores/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,20 @@
import logging

from django.contrib import admin
from django.contrib.admin import ModelAdmin

from stores.models import ShoppingStore as Store

log = logging.getLogger(__name__)
log.info("Loading stores admin config...")

admin.site.register(Store)

class StoreAdmin(ModelAdmin): # type: ignore
"""Admin configuration class for store models."""

list_display = ["name", "store_type", "description", "created_at", "updated_at", "user"]


admin.site.register(Store, StoreAdmin)

log.info("Loaded stores admin config.")

0 comments on commit 3a932c3

Please sign in to comment.