MCPcopy Create free account

hub / github.com/PacktPublishing/Full-stack-Django-and-React / functions

Functions151 in github.com/PacktPublishing/Full-stack-Django-and-React

↓ 10 callersFunctionuserFixtures
()
social-media-react/src/helpers/fixtures/user.js:4
↓ 9 callersFunctiongetUser
()
social-media-react/src/hooks/user.actions.js:67
↓ 8 callersMethoddelete
(self, using=None, keep_parents=False)
core/abstract/models.py:52
↓ 6 callersFunctionsetUserData
(data)
social-media-react/src/hooks/user.actions.js:89
↓ 5 callersMethodcreate
(self, request, *args, **kwargs)
core/post/viewsets.py:42
↓ 5 callersMethodget_object_by_public_id
(self, public_id)
core/abstract/models.py:19
↓ 5 callersFunctionrender
(ui, { ...renderOptions } = {})
social-media-react/src/helpers/test-utils.jsx:5
↓ 4 callersMethodcreate_user
Create and return a `User` with an email, phone number, username and password.
core/user/models.py:17
↓ 4 callersFunctiongetRefreshToken
()
social-media-react/src/hooks/user.actions.js:83
↓ 4 callersFunctionuseUserActions
()
social-media-react/src/hooks/user.actions.js:5
↓ 3 callersMethodsave
( self, force_insert=False, force_update=False, using=None, update_fields=None )
core/abstract/models.py:39
↓ 2 callersFunction_delete_cached_objects
(app_label)
core/abstract/models.py:9
↓ 2 callersFunctioncommentFixtures
(isLiked = true, isEdited = false, user = undefined)
social-media-react/src/helpers/fixtures/comment.js:5
↓ 2 callersFunctiongetAccessToken
()
social-media-react/src/hooks/user.actions.js:77
↓ 2 callersMethodget_object
(self)
core/comment/viewsets.py:29
↓ 2 callersMethodget_object
(self)
core/post/viewsets.py:21
↓ 2 callersFunctionhandleLikeClick
(action)
social-media-react/src/components/comments/Comment.jsx:17
↓ 2 callersFunctionhandleLikeClick
(action)
social-media-react/src/components/posts/Post.jsx:18
↓ 2 callersFunctionpostFixtures
(isLiked = true, isEdited = false, user = undefined)
social-media-react/src/helpers/fixtures/post.js:5
↓ 1 callersFunctionadd
(a, b)
tests.py:1
↓ 1 callersMethodcreate
(self, request, *args, **kwargs)
core/comment/viewsets.py:51
↓ 1 callersMethodcreate_superuser
Create and return a `User` with superuser (admin) permissions.
core/user/models.py:34
↓ 1 callersMethodget_queryset
(self)
core/comment/viewsets.py:18
↓ 1 callersMethodget_queryset
(self)
core/post/viewsets.py:18
↓ 1 callersFunctionhandleClose
()
social-media-react/src/components/comments/UpdateComment.jsx:19
↓ 1 callersFunctionhandleClose
()
social-media-react/src/components/posts/CreatePost.jsx:20
↓ 1 callersFunctionhandleClose
()
social-media-react/src/components/posts/UpdatePost.jsx:17
↓ 1 callersMethodhas_liked_comment
Return True if the user has liked a `comment`; else False
core/user/models.py:102
↓ 1 callersMethodhas_liked_post
Return True if the user has liked a `post`; else False
core/user/models.py:90
↓ 1 callersMethodlike_comment
Like `comment` if it hasn't been done yet
core/user/models.py:94
↓ 1 callersMethodlike_post
Like `post` if it hasn't been done yet
core/user/models.py:82
↓ 1 callersFunctionmain
Run administrative tasks.
manage.py:7
↓ 1 callersMethodremove_like_comment
Remove a like from a `comment`
core/user/models.py:98
↓ 1 callersMethodremove_like_post
Remove a like from a `post`
core/user/models.py:86
FunctionApp
()
social-media-react/src/App.js:11
FunctionComment
(props)
social-media-react/src/components/comments/Comment.jsx:11
FunctionCreateComment
(props)
social-media-react/src/components/comments/CreateComment.jsx:8
FunctionCreatePost
(props)
social-media-react/src/components/posts/CreatePost.jsx:7
FunctionEditProfile
()
social-media-react/src/pages/EditProfile.jsx:9
FunctionHome
()
social-media-react/src/pages/Home.jsx:11
FunctionLayout
(props)
social-media-react/src/components/Layout.jsx:10
FunctionLogin
()
social-media-react/src/pages/Login.jsx:5
FunctionLoginForm
()
social-media-react/src/components/authentication/LoginForm.jsx:6
FunctionNavigationBar
()
social-media-react/src/components/Navbar.jsx:8
FunctionPost
(props)
social-media-react/src/components/posts/Post.jsx:12
FunctionProfile
()
social-media-react/src/pages/Profile.jsx:10
FunctionProfileCard
(props)
social-media-react/src/components/profile/ProfileCard.jsx:5
FunctionProfileDetails
(props)
social-media-react/src/components/profile/ProfileDetails.jsx:6
FunctionProtectedRoute
({ children })
social-media-react/src/routes/ProtectedRoute.jsx:6
FunctionRegistration
()
social-media-react/src/pages/Registration.jsx:5
FunctionRegistrationForm
()
social-media-react/src/components/authentication/RegistrationForm.jsx:6
FunctionSinglePost
()
social-media-react/src/pages/SinglePost.jsx:12
FunctionToaster
(props)
social-media-react/src/components/Toaster.jsx:4
FunctionUpdateComment
(props)
social-media-react/src/components/comments/UpdateComment.jsx:7
FunctionUpdatePost
(props)
social-media-react/src/components/posts/UpdatePost.jsx:6
FunctionUpdateProfileForm
(props)
social-media-react/src/components/profile/UpdateProfileForm.jsx:8
FunctionWrapper
({ children })
social-media-react/src/helpers/test-utils.jsx:6
Method__str__
(self)
core/user/models.py:75
Method__str__
(self)
core/comment/models.py:19
Method__str__
(self)
core/post/models.py:17
Functionclient
()
conftest.py:6
Functioncomment
(db, user, post)
core/fixtures/comment.py:10
Methodcreate
(self, validated_data)
core/auth/serializers/register.py:33
Methodcreate
(self, request, *args, **kwargs)
core/auth/viewsets/register.py:14
Methodcreate
(self, request, *args, **kwargs)
core/auth/viewsets/login.py:14
Methodcreate
(self, request, *args, **kwargs)
core/auth/viewsets/logout.py:13
Methodcreate
(self, request, *args, **kwargs)
core/auth/viewsets/refresh.py:13
Functionedit
(data, userId)
social-media-react/src/hooks/user.actions.js:35
Functionfetcher
(url)
social-media-react/src/helpers/axios.js:56
Methodget_comments_count
(self, instance)
core/post/serializers.py:18
Methodget_liked
(self, instance)
core/comment/serializers.py:21
Methodget_liked
(self, instance)
core/post/serializers.py:21
Methodget_likes_count
(self, instance)
core/comment/serializers.py:30
Methodget_likes_count
(self, instance)
core/post/serializers.py:30
Methodget_object
(self)
core/user/viewsets.py:22
Methodget_posts_count
(self, instance)
core/user/serializers.py:11
Methodget_queryset
(self)
core/user/viewsets.py:17
FunctionhandleDelete
()
social-media-react/src/components/comments/Comment.jsx:26
FunctionhandleDelete
()
social-media-react/src/components/posts/Post.jsx:27
FunctionhandleLogout
()
social-media-react/src/components/Navbar.jsx:15
FunctionhandleNavigateToProfile
()
social-media-react/src/components/profile/ProfileCard.jsx:9
FunctionhandleShow
()
social-media-react/src/components/comments/UpdateComment.jsx:20
FunctionhandleShow
()
social-media-react/src/components/posts/CreatePost.jsx:21
FunctionhandleShow
()
social-media-react/src/components/posts/UpdatePost.jsx:18
FunctionhandleSubmit
(event)
social-media-react/src/components/profile/UpdateProfileForm.jsx:22
FunctionhandleSubmit
(event)
social-media-react/src/components/authentication/RegistrationForm.jsx:19
FunctionhandleSubmit
(event)
social-media-react/src/components/authentication/LoginForm.jsx:15
FunctionhandleSubmit
(event)
social-media-react/src/components/comments/CreateComment.jsx:21
FunctionhandleSubmit
(event)
social-media-react/src/components/comments/UpdateComment.jsx:22
FunctionhandleSubmit
(event)
social-media-react/src/components/posts/CreatePost.jsx:23
FunctionhandleSubmit
(event)
social-media-react/src/components/posts/UpdatePost.jsx:20
Methodhas_object_permission
(self, request, view, obj)
core/auth/permissions.py:5
Methodhas_permission
(self, request, view)
core/auth/permissions.py:28
Methodlike
(self, request, *args, **kwargs)
core/comment/viewsets.py:58
Methodlike
(self, request, *args, **kwargs)
core/post/viewsets.py:49
Methodlist
(self, request, *args, **kwargs)
core/comment/viewsets.py:36
Methodlist
(self, request, *args, **kwargs)
core/post/viewsets.py:28
Functionlogin
(data)
social-media-react/src/hooks/user.actions.js:17
Functionlogout
()
social-media-react/src/hooks/user.actions.js:56
Methodname
(self)
core/user/models.py:79
next →1–100 of 151, ranked by callers