"""Views for Django Imager."""

from django.views.generic import TemplateView


class HomeView(TemplateView):
    """Home view."""

    template_name = "imagersite/home.html"

    def get_context_data(self, **kwargs):
        """."""
        context = super(HomeView, self).get_context_data(**kwargs)
        user = context['view'].request.user
        if user:
            return {"username": user}
        return {}

b9687e9fdc1626a2b698fadc8c92dc2c133c8d66
<mask token>


class HomeView(TemplateView):
    <mask token>
    <mask token>

    def get_context_data(self, **kwargs):
        """."""
        context = super(HomeView, self).get_context_data(**kwargs)
        user = context['view'].request.user
        if user:
            return {'username': user}
        return {}

<mask token>


class HomeView(TemplateView):
    <mask token>
    template_name = 'imagersite/home.html'

    def get_context_data(self, **kwargs):
        """."""
        context = super(HomeView, self).get_context_data(**kwargs)
        user = context['view'].request.user
        if user:
            return {'username': user}
        return {}

<mask token>


class HomeView(TemplateView):
    """Home view."""
    template_name = 'imagersite/home.html'

    def get_context_data(self, **kwargs):
        """."""
        context = super(HomeView, self).get_context_data(**kwargs)
        user = context['view'].request.user
        if user:
            return {'username': user}
        return {}

<mask token>
from django.views.generic import TemplateView


class HomeView(TemplateView):
    """Home view."""
    template_name = 'imagersite/home.html'

    def get_context_data(self, **kwargs):
        """."""
        context = super(HomeView, self).get_context_data(**kwargs)
        user = context['view'].request.user
        if user:
            return {'username': user}
        return {}

"""Views for Django Imager."""

from django.views.generic import TemplateView


class HomeView(TemplateView):
    """Home view."""

    template_name = "imagersite/home.html"

    def get_context_data(self, **kwargs):
        """."""
        context = super(HomeView, self).get_context_data(**kwargs)
        user = context['view'].request.user
        if user:
            return {"username": user}
        return {}
