Skip to content

Commit

Permalink
Update Ariadne to 0.4, remove custom Django view (#1235)
Browse files Browse the repository at this point in the history
  • Loading branch information
rafalp authored May 23, 2019
1 parent 5c13fb3 commit bd22c40
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 676 deletions.
1 change: 1 addition & 0 deletions devproject/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@
"django.contrib.messages",
"django.contrib.staticfiles",
# 3rd party apps used by Misago
"ariadne.contrib.django",
"celery",
"debug_toolbar",
"mptt",
Expand Down
7 changes: 5 additions & 2 deletions misago/graphql/admin/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
from ariadne.contrib.django.views import GraphQLView
from django.conf.urls import url

from .views import graphql_view
from .schema import schema


class MisagoAdminExtension:
def register_urlpatterns(self, urlpatterns):
# GraphQL API
urlpatterns.namespace(r"^graphql/", "graphql")
urlpatterns.patterns("graphql", url(r"^$", graphql_view, name="index"))
urlpatterns.patterns(
"graphql", url(r"^$", GraphQLView.as_view(schema=schema), name="index")
)
75 changes: 0 additions & 75 deletions misago/graphql/admin/tests/test_admin_graphql_view.py

This file was deleted.

38 changes: 0 additions & 38 deletions misago/graphql/admin/views.py

This file was deleted.

Loading

0 comments on commit bd22c40

Please sign in to comment.