Skip to content

Commit

Permalink
add docstring to NetworkView class for improved clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
csae8092 committed Jan 12, 2025
1 parent 8e5b698 commit a120da8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions network/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ def get_person_person_tei(request):


class NetworkView(TemplateView):
"""
A Django view that renders the network template and provides context data for the template.
Attributes:
template_name (str): The path to the template used by this view.
Methods:
get_context_data(**kwargs):
Retrieves context data for the template, including a list of models with their associated
color, icon, and verbose name. Models that do not have these attributes are skipped.
"""

template_name = "network/network.html"

def get_context_data(self, **kwargs):
Expand Down

0 comments on commit a120da8

Please sign in to comment.