How to hide the unfilled items

How to hide the unfilled items(CharField, Foreignkey, etc) on html Detail page?

Views.py
    
    def inquiry_detail(request, pk):
    inquiry = Repair_Case.objects.get(id=pk)    
    context = {
        'inquiry': inquiry, 
    }    
    return render(request, 'App/inquiry_detail.html', context)


M
![html|690x298](upload://tmHJnG2piumpOcSVuA6IHGOSzHz.jpeg)
odels.py

    class Repair_Case(models.Model):
        customer = models.CharField(
            max_length=100, 
            blank=True,
        )
        purchase_date = models.DateField(
            default= '',
            blank=True, 
            null=True,         
        )
        customer2 = models.CharField(
            max_length=100, 
            blank=True,
        )
        purchase_date2 = models.DateField(
            default=None, 
            blank=True, 
            null=True,
        )
        customer3 = models.CharField(
            max_length=100, 
            blank=True,
        )
        purchase_date3 = models.DateField(
            default=None, 
            blank=True, 
            null=True,
        )
        Problem = models.ManyToManyField(
        Problem,
        blank=True,
        ) 
        Battery = models.ForeignKey( 
        Battery, 
        on_delete=models.CASCADE, 
        default=0,
        null=False,  
        blank=True, 
        ) 


html         

            <div class="row col-md-12">
                <p class="col col-md-3">{% get_verbose_field_name inquiry 'customer' %}</p>
                <p class="col col-md-13 text-primary">{{ inquiry.customer }}</p>
            </div>
            <div class="row col-md-12">
                <p class="col col-md-3">{% get_verbose_field_name inquiry 'purchase_date' %}</p>
                <p class="col col-md-13 text-primary">{{ inquiry.purchase_date|default_if_none:"" }}</p>
            </div>
            <div class="row col-md-12">
                <p class="col col-md-3">{% get_verbose_field_name inquiry 'customer2' %}</p>
                <p class="col col-md-13 text-primary">{{ inquiry.customer2 }}</p>
            </div>
            <div class="row col-md-12">
                <p class="col col-md-3">{% get_verbose_field_name inquiry 'purchase_date2' %}</p>
                <p class="col col-md-13 text-primary">{{ inquiry.purchase_date2|default_if_none:"" }}</p>
            </div>
            <div class="row col-md-12">
                <p class="col col-md-3">{% get_verbose_field_name inquiry 'customer3' %}</p>
                <p class="col col-md-13 text-primary">{{ inquiry.customer3 }}</p>
            </div>
            <div class="row col-md-12">
                <p class="col col-md-3">{% get_verbose_field_name inquiry 'purchase_date3' %}</p>
                <p class="col col-md-13 text-primary">{{ inquiry.purchase_date3|default_if_none:"" }}</p>
            </div>
            <div class="row col-md-12">
                <p class="col col-md-3">{% get_verbose_field_name inquiry 'Problem' %}</p>
                <p class="col col-md-13 text-primary">{{ inquiry.Problem|default_if_none:"" }}</p>
            </div>
            <div class="row col-md-12">
                <p class="col col-md-3">{% get_verbose_field_name inquiry 'Battery' %}</p>
                <p class="col col-md-13 text-primary">{{ inquiry.Battery|default_if_none:"" }}</p>
            </div>

Take a look at the if template tag.