Commits

Svyatoslav Bulbakha committed ac03f0d

Add doc

Comments (0)

Files changed (1)

djangodash/apps/webgrab/templatetags/webgrab_tags.py

 @register.assignment_tag
 def site_form(request, site):
     """Returns site form with predefined language for current site."""
+    # Check we have site and request
     if isinstance(site, Site) and not isinstance(request, str):
         return SiteForm(request.POST or None, initial={
             'lang': site.lang,