Skip to content

Commit

Permalink
PhonelistPage: Complete signature of serve()
Browse files Browse the repository at this point in the history
The method wagtail.core.models.Page.serve() is documented with
the signature

    serve(request, *args, **kwargs)

http://docs.wagtail.io/en/v2.7/reference/pages/model_reference.html

Apply this signature to the serve() method of PhonelistPage. This is for
documentation purpose only, as the additional arguments are not used.
  • Loading branch information
donald committed Jan 4, 2020
1 parent 9ab116d commit 6743f70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mpicms/base/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,5 @@ class Meta: # noqa
verbose_name = _("Phonelist")
verbose_name_plural = _("Phonelists")

def serve(self, request):
def serve(self, request, *args, **kwargs):
return ContactListView.as_view()(request)

0 comments on commit 6743f70

Please sign in to comment.