Last active
March 29, 2020 05:34
-
-
Save RoySegall/87104d949e7fdf82dedf14718d939db8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@url_decoration(re_path=r'^api/blog/(?P<blog_id>\d+)/?$', name="blog") | |
class BlogControllerForTests(View): | |
def get(self, request, blog_id): | |
return JsonResponse({'id': 1, 'title': f'Nice Blog {blog_id}'}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment