3
›(ƒhi  ã               @   s   d dl mZ dd„ ZdS )é   )Úmodulesc             C   s>   t | dƒstdƒ‚d}| jr,t| jjddƒ}tj| jƒ|dœS )z<Add current module and modules list to the template context.ÚuserzŠmodules context processor requires "django.contrib.auth.contex_processors.auth"to be in TEMPLATE_CONTEXT_PROCESSORS in your settings file.NÚmodule)r   Zcurrent_module)ÚhasattrÚ
ValueErrorZresolver_matchÚgetattrZurl_nameÚmodules_registryZavailable_modulesr   )Úrequestr   © r
   úQ/tmp/pip-install-q3hcpn_q/django-material/material/frontend/context_processors.pyr      s    

r   N)Ú r   r   r
   r
   r
   r   Ú<module>   s   