add_comment - wstep
This commit is contained in:
parent
799b05b2a2
commit
9a0fa59a6a
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
||||
ocena użytkownika
|
@ -26,5 +26,6 @@ urlpatterns = [
|
||||
path('<int:user_id>/delete_user', views.delete_user, name='delete_user'),
|
||||
path('edit_user', views.edit_user, name='edit_user'),
|
||||
path('user_profile/<str:user_name>', views.user_profile, name='user_profile'),
|
||||
path('user_profile/<str:user_name>/add_comment', views.add_comment, name='add_comment'),
|
||||
|
||||
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
|
@ -451,3 +451,6 @@ def user_profile(request, user_name):
|
||||
'name': user_prof.email,
|
||||
}
|
||||
return HttpResponse(template.render(context, request))
|
||||
|
||||
def add_comment(request, user_name):
|
||||
return True
|
||||
|
Loading…
Reference in New Issue
Block a user