title: list_display with a function, how to pass arguments?
body: <p>The <a href="https://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.list_display" rel="nofollow">Django admin docs</a> says that it is possible to specify a callable as a value that can be used in <code>list_display</code>. If I need to pass some extra context to the function via function arguments, what's the best way to accomplish that?</p>
  
  <p>In pseudo code, what I'd like to do is something like:</p>
  
  <p><strong>App realestate:</strong></p>
  
  <p>models.py:</p>
  
  <pre><code>class A(models.Model):
      raw = models.TextField()
  </code></pre>
  
  <p>admin.py:</p>
  
  <pre><code>from utils import processing
  
  list_display = [processing('realestate app result', True)]
  </code></pre>
  
  <p><strong>App party:</strong></p>
  
  <p>models.py:</p>
  
  <pre><code>class Person(models.Model):
      raw = models.TextField()
  </code></pre>
  
  <p>admin.py:</p>
  
  <pre><code>from utils import processing
  
  list_display = [processing('party app result', False)]
  </code></pre>
  
  <p><strong>utils.py:</strong></p>
  
  <pre><code>def processing(obj, short_description, allow_tags=False):
      def process(obj):
          # do something
          pass
      process.short_description = short_description
      process.allow_tags = allow_tags
  
      return process(obj)
  </code></pre>