Skip to content

Commit

Permalink
Added models to admin account
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekaterina-Vititneva committed Aug 10, 2024
1 parent 895060b commit eddd9c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions project_2/commerce/auctions/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
from django.contrib import admin
from .models import User, Listing, Bid, Comment

# Register your models here.
admin.site.register(User)
admin.site.register(Listing)
admin.site.register(Bid)
admin.site.register(Comment)
1 change: 1 addition & 0 deletions project_2/commerce/auctions/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
path("create_listing", views.create_listing, name="create_listing"),
path("listing/<str:title>", views.listing, name="listing"),
path("categories", views.categories, name="categories"),
path("categories/<str:category>", views.category_listings, name="category_listings"),
path("watchlist", views.watchlist, name="watchlist"),
]

0 comments on commit eddd9c3

Please sign in to comment.