Type Error in Django Admin interface

Hello

**create_reverse_many_to_one_manager.<locals>.RelatedManager.__call__() missing 1 required keyword-only argument: 'manager'**

I’m getting a Type Error using the admin site for one of my classes. It has one Foreign Key which displays. It is a Foreign Key in other classes.

My project has no instances of ‘object().all()’, which has been suggested as a source of this error. Any thoughts on how to resolve this error are most appreciated.

GET
Request URL:	http://127.0.0.1:8000/admin/xx/aa
Django Version:	4.2.7
Exception Type:	TypeError
Exception Value:	
create_reverse_many_to_one_manager.<locals>.RelatedManager.__call__() missing 1 required keyword-only argument: 'manager'
Exception Location:	C:\Users\xx\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\utils.py, line 285, in lookup_field
Raised during:	django.contrib.admin.options.changelist_view

## Error during template rendering

In template `C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\templates\admin\change_list.html`, error at line **68**

### create_reverse_many_to_one_manager.<locals>.RelatedManager.__call__() missing 1 required keyword-only argument: 'manager'


66	        {% block result_list %}
67	          {% if action_form and actions_on_top and cl.show_admin_actions %}{% admin_actions %}{% endif %}
**68	          {% result_list cl %}**
69	          {% if action_form and actions_on_bottom and cl.show_admin_actions %}{% admin_actions %}{% endif %}
70	        {% endblock %}

We would need to see the models involved (including the ModelAdmin classes), along with any custom managers, to be able to begin to diagnose this.

Also, when posting code or templates here, enclose the code (or template) between lines of three backtick - ` characters. This means you’ll have a line of ```, then your code (or template), then another line of ```. This forces the forum software to keep that text properly formatted. (I’ve taken the liberty of editing your original post for this.)

Finally, when reporting an error, it’s more helpful to copy/paste the error with the full traceback from the console where you’re running runserver. (Also fenced between lines of ```.)

views.py

class CommodityViewSet(ModelViewSet): # single class for implementing Commodity end pt
    queryset = Commodity.objects.prefetch_related('images').all()
    serializer_class = CommoditySerializer
    filter_backends = [DjangoFilterBackend, SearchFilter, OrderingFilter]
    filterset_class = CommodityFilter
    pagination_class = DefaultPagination
    permission_classes = [IsAdminOrReadOnly]
    search_fields = ['type','hand','description'] #,'wo_number__wo_number']
    ordering_fields = ['type', 'hand','requirement_dash', 'requirement_rev']

    def get_serializer_context(self):
        return {'request': self.request}

    def destroy(self, request, *args, **kwargs):
        if Commodity.objects.filter(commodity_id=kwargs['pk']).count > 0:
            return Response({'error':'Commondity cannot be delete if ref in workorder'},status=status.HTTP_405_METHOD_NOT_ALLOWED)
        return super.destroy(request, *args, **kwargs)

class CommodityImageViewSet(ModelViewSet):
    serializer_class = CommodityImageSerializer
    
    def get_serializer_context(self):
        return {'commodity_id': self.kwargs['commodity_pk']}

    def get_queryset(self):
        return CommodityImage.objects.filter(commodity_id=self.kwargs['commodity_pk'])

models.py

class Handedness(models.Model):
    handedness = models.CharField(max_length=2,choices=HANDEDNESS_CHOICES, default=RIGHT_HAND)
    def __str__(self) -> str:
        return self.handedness
    
    class Meta:
        ordering = ['handedness']

class Commodity(models.Model):
    type = models.CharField(
        max_length=4, choices=COMMODITY_CHOICES, default=C_FUSELAGE_490)
    description = models.TextField(null=True, blank=True)
    base_requirement = models.CharField(max_length=10, default='326P4S301')
    requirement_dash = models.PositiveSmallIntegerField(
        default=0,
        validators=[MinValueValidator(0)])
    requirement_rev = models.PositiveSmallIntegerField(
        default=0,
        validators=[MinValueValidator(0)]
        )
    hand = models.ForeignKey(Handedness, on_delete=models.PROTECT)
    last_update = models.DateTimeField(auto_now=True)

    def commodity_label(self) -> str:
        return self.type + '_' + self.base_requirement + '_' + str(self.requirement_dash).zfill(3) + '_' + str(self.requirement_rev).zfill(3)

    def commodity_req_label(self) -> str:
        return self.base_requirement + '_' + str(self.requirement_dash).zfill(3) + '_' + str(self.requirement_rev).zfill(3)
    
    def __str__(self) -> str:
        return self.commodity_label()

    class Meta:
        ordering = ['type','base_requirement']

class CommodityImage(models.Model):
    commodity = models.ForeignKey(
        Commodity, on_delete=models.CASCADE, related_name='images')
    image = models.ImageField(
            upload_to='saidm/images',
            validators=[validate_file_size])
            # validators=[FileExtensionValidator(allowed_extensions=['pdf'])])
        

trace from the terminal runserver

Internal Server Error: /admin/saidm/commodity/
Traceback (most recent call last):
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\utils.py", line 272, in lookup_field
    f = _get_non_gfk_field(opts, name)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\utils.py", line 310, in _get_non_gfk_field
    raise FieldDoesNotExist()
django.core.exceptions.FieldDoesNotExist

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\core\handlers\base.py", line 220, in _get_response
    response = response.render()
               ^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\response.py", line 114, in render
    self.content = self.rendered_content
                   ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\response.py", line 92, in rendered_content
    return template.render(context, self._request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\backends\django.py", line 61, in render
    return self.template.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 175, in render
    return self._render(context)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\test\utils.py", line 112, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 966, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\loader_tags.py", line 157, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\test\utils.py", line 112, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 966, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\loader_tags.py", line 157, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\test\utils.py", line 112, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 966, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\loader_tags.py", line 63, in render
    result = block.nodelist.render(context)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 966, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\loader_tags.py", line 63, in render
    result = block.nodelist.render(context)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 966, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\templatetags\base.py", line 45, in render
    return super().render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\library.py", line 258, in render
    _dict = self.func(*resolved_args, **resolved_kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\templatetags\admin_list.py", line 336, in result_list
    "results": list(results(cl)),
               ^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\templatetags\admin_list.py", line 309, in results
    yield ResultList(form, items_for_result(cl, res, form))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\templatetags\admin_list.py", line 303, in __init__
    super().__init__(*items)
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\templatetags\admin_list.py", line 213, in items_for_result
    f, attr, value = lookup_field(field_name, result, cl.model_admin)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\utils.py", line 285, in lookup_field
    value = attr()
            ^^^^^^
TypeError: create_reverse_many_to_one_manager.<locals>.RelatedManager.__call__() missing 1 required keyword-only argument: 'manager'
Internal Server Error: /admin/saidm/commodity/
Traceback (most recent call last):
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\utils.py", line 272, in lookup_field
    f = _get_non_gfk_field(opts, name)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\utils.py", line 310, in _get_non_gfk_field
    raise FieldDoesNotExist()
django.core.exceptions.FieldDoesNotExist

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\core\handlers\exception.py", line 55, in inner
    response = get_response(request)
               ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\core\handlers\base.py", line 220, in _get_response
    response = response.render()
               ^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\response.py", line 114, in render
    self.content = self.rendered_content
                   ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\response.py", line 92, in rendered_content
    return template.render(context, self._request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\backends\django.py", line 61, in render
    return self.template.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 175, in render
    return self._render(context)
           ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\test\utils.py", line 112, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 966, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\loader_tags.py", line 157, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\test\utils.py", line 112, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 966, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\loader_tags.py", line 157, in render
    return compiled_parent._render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\test\utils.py", line 112, in instrumented_test_render
    return self.nodelist.render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 966, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\loader_tags.py", line 63, in render
    result = block.nodelist.render(context)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 966, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\loader_tags.py", line 63, in render
    result = block.nodelist.render(context)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in render
    return SafeString("".join([node.render_annotated(context) for node in self]))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 1005, in <listcomp>
    return SafeString("".join([node.render_annotated(context) for node in self]))
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\base.py", 
line 966, in render_annotated
    return self.render(context)
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\templatetags\base.py", line 45, in render
    return super().render(context)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\template\library.py", line 258, in render
    _dict = self.func(*resolved_args, **resolved_kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\templatetags\admin_list.py", line 336, in result_list
    "results": list(results(cl)),
               ^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\templatetags\admin_list.py", line 309, in results
    yield ResultList(form, items_for_result(cl, res, form))
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\templatetags\admin_list.py", line 303, in __init__
    super().__init__(*items)
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\templatetags\admin_list.py", line 213, in items_for_result
    f, attr, value = lookup_field(field_name, result, cl.model_admin)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\scott.sandwith.HM-AM\.virtualenvs\saidm_front-BQyjU-Hl\Lib\site-packages\django\contrib\admin\utils.py", line 285, in lookup_field
    value = attr()
            ^^^^^^
TypeError: create_reverse_many_to_one_manager.<locals>.RelatedManager.__call__() missing 1 required keyword-only argument: 'manager'

admin.py

@admin.register(models.Handedness)
class HandednessAdmin(admin.ModelAdmin):
    list_display = ['handedness']
    list_editable = ['handedness']
    list_per_page = 10
    list_display_links = None
    search_fields = ['handedness']


 # register this class to the Commodity class

class CommodityImageInline(admin.TabularInline):
    model = models.CommodityImage
    readonly_fields = ['thumbnail']

    def thumbnail(self, instance):
        if instance.image.name != '':
            return format_html(f'<img src="{instance.image.url} " class="thumbnail"/>') # formatted string
        return ''
    




@admin.register(models.Commodity)
class CommodityAdmin(admin.ModelAdmin):
    autocomplete_fields = ['hand']
    prepopulated_fields = {
        'description': ['type']
    }
    actions = ['clear_duplicate_commodites']
    inlines = [CommodityImageInline]
    list_display = ['type', 'description', 'hand',
                    'base_requirement', 'requirement_dash', 'requirement_rev','images']
    list_editable = ['type','description', 'hand',
                     'base_requirement', 'requirement_dash', 'requirement_rev']
    list_per_page = 10
    search_fields = ['type', 'description', 'base_requirement',
                     'requirement_dash', 'requirement_rev']
    list_filter = ['type', 'requirement_rev', 'hand',]
    list_display_links = None


    @admin.action(description='Clear duplicate commodities')
    def clear_duplicate_commodites(self, request, queryset: QuerySet):
        dupes = queryset.objects.values('type') \
            .annotate(Count('id')) \
            .order_by() \
            .filter(id__count__gt=1)
        duplicates = queryset.objects.filter(
            name__in=[item['type'] for item in dupes])
        duplicate_count = duplicates.objects.Count()
        self.message_user(
            request,
            f'{duplicate_count} duplicate commondities were deleted',
            messages.WARNING
        )

    class Media: # load classes
        css = {
            'all': ['saidm/styles.css']
        }

Thank you for the assistance.

<conjecture>
Since you’re reporting this error:

I’m going to guess that the issue is here:

with trying to access a reverse foreign key in the list_display.

For debugging / diagnostic purposes, the first thing I’d try would be to remove 'images' from that list.

I’m thinking that this case fits into the same category as the second bullet of the section " A few special cases to note about list_display :" at The Django admin site | Django documentation | Django.
</conjecture>

You nailed it. Thank you.