
    9 f2                     P    d dl mZ d dlmZ d dlmZ  G d dej                  ZdS )    )checkers)BASE_ID)check_messagesc                   ~    e Zd ZdZde ddde ddiZ ed          d             Z ed	          d
             ZdS )AuthUserCheckerzauth-user-checkerE41)zHard-coded 'auth.User'hard-coded-auth-userzJDon't hard-code the auth.User model. Use settings.AUTH_USER_MODEL instead!42)z3User model imported from django.contrib.auth.modelsimported-auth-userzeDon't import django.contrib.auth.models.User model. Use django.contrib.auth.get_user_model() instead!r
   c                 N    |j         dk    r|                     d|           d S d S )Nz	auth.Userr
   node)valueadd_message)selfr   s     V/var/www/equiseq/venv/lib/python3.11/site-packages/pylint_django/checkers/auth_user.pyvisit_constzAuthUserChecker.visit_const   s9     :$$3$????? %$    r   c                 |    |j         dk    r.|j        D ](}|d         dv r|                     d|            d S 'd S d S )Nzdjango.contrib.auth.modelsr   )*Userr   r   )modnamenamesr   )r   r   imported_namess      r   visit_importfromz AuthUserChecker.visit_importfrom   si    <777"&*  !!$55$$%9$EEEEE 6 87 r   N)	__name__
__module____qualname__namer   msgsr   r   r    r   r   r   r      s        D 	G 

 	G 
D ^*++@ @ ,+@ ^())  *)  r   r   N)pylintr   pylint_django.__pkginfo__r   pylint_django.compatr   BaseCheckerr   r"   r   r   <module>r'      sr          - - - - - - / / / / / /    h*     r   