small refactoring favorites
This commit is contained in:
parent
0647c46292
commit
a4d7430379
|
|
@ -1,12 +1,12 @@
|
|||
"""Favorites urlpaths."""
|
||||
from django.urls import path
|
||||
from . import views
|
||||
|
||||
from . import views
|
||||
|
||||
app_name = 'favorites'
|
||||
|
||||
urlpatterns = [
|
||||
path('establishments/', views.FavoritesEstablishmentListView.as_view(),
|
||||
name='establishment-list'),
|
||||
path('remove/<int:pk>/', views.FavoritesDestroyView.as_view(), name='delete-favorites'),
|
||||
path('<int:pk>/', views.FavoritesDestroyView.as_view(), name='remove-from-favorites'),
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user