Django url error эта проблема возникает только когда пользователь вошел в систему

"Environment of the project:
Request Method: GET
Request URL: 

Django Version: 3.0.5
Python Version: 3.10.7"
"error is with the template and url"
"eg: more details about question ....................................."
"error at line 12"
   "Reverse for 'customer' with keyword arguments '{'pk': ''}' not found. 1 pattern(s) tried: ['customer/(?P<pk>[^/]+)/$']"
   2 : 
   3 : <div class="homeWrapper">
   4 :         <header>
   5 :             <nav>
   6 :                 <ul class="nav__links">
   7 :                     <li><a href="{% url 'home'  %}">Home</a></li>
   8 :                     <li><a href="{% url 'gallery'  %}">Gallery</a></li>
   9 :                     <li><a href="#faqs" class="scroll">About us</a></li>
   10 :                     <!--page is in demo mode after deployment logic will be made here-->

#ошибка в строке 12

   11 :                     {% if user.is_authenticated  %}
   12 :                         <li><a href=" {% url 'customer' pk=current.id %} ">Customer</a></li>
   13 :                     {% else  %}
   14 :                         <li><a class="scroll" href="#login">Login</a></li>
   15 :                     {% endif %}
   16 :                     {% if request.user.is_staff  %}
   17 :                         <li><a href="{% url 'graph'  %}">Dash Board</a></li>
   18 :                     {%endif%}
   19 :                     <script src="https://cdn.jsdelivr.net/npm/darkmode-js@1.5.7/lib/darkmode-js.min.js"></script>
   20 :                 </ul>
   21 :             </nav>
   22 :             
Exception Type: NoReverseMatch at /gallery
Exception Value: Reverse for 'customer' with keyword arguments '{'pk': ''}' not found. 1 pattern(s) tried: ['customer/(?P<pk>[^/]+)/$']

" [1]: https://i.stack.imgur.com/8MqOm.jpg

====== поместить вот так =====

{% url 'customer' request.user.id %}
Вернуться на верх