Remove or edit object name in admin.TabularInline
<p>My tabular inline in the admin looks like this :</p>

<p><img src="https://imgur.com/fcdRkbF.jpg" alt="tabularinline"></p>

<p>How do I get rid of the <code>DateDeCotisation_adherents object</code> phrase ?</p>

<p>For bonus points, why are there three empty lines at the bottom ?</p>

<h1>admin.py</h1>

<pre><code>class DatesDeCotisationInline(admin.TabularInline):
    model = DateDeCotisation.adherents.through
    readonly_fields = ['datedecotisation']
    can_delete = False
</code></pre>

<h1>models.py</h1>

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

    date = models.DateTimeField()
    adherents = models.ManyToManyField(Adherent, related_name='adherents_du_jour')

    def __str__(self): return self.date.strftime('%Y-%m-%d')

    class Meta:
        verbose_name = "date de cotisation".encode('utf-8')
        verbose_name_plural = "dates de cotisation".encode('utf-8')
        ordering = ['-date']
</code></pre>