Django models, @property decorator for method
<p>Let's say I have model like this:</p>

<pre><code>class Article(models.Model):
    ...

    def get_route(self):
        ...
        return data
</code></pre>

<p>When I want to display value returned by <code>get_route()</code> in admin panel I have to create custom method like this:</p>

<pre><code>def list_display_get_route(self, obj):
    return obj.get_route()
list_display = ('list_display_get_route', ...)
</code></pre>

<p>I've recently discovered that if I decorate <code>get_route()</code> with <code>@property</code> there's no need to use <code>list_display_get_route()</code> and the following will work:</p>

<p><strong>models.py</strong></p>

<pre><code>@property
def get_route(self):
    ...
    return data
</code></pre>

<p><strong>admin.py</strong></p>

<pre><code>list_display = ('get_route', ...)
</code></pre>

<p>Is this correct approach? Are there any drawbacks of this solution? </p>