title: Get the specific value of filter in Django
body: <p>I know this is common to ask but I wondered if is there's any way to convert the object value to specific value like Integer , The out put of the filtered query is <code>card_tbl object (1)</code> but I want to get the specific value of this which is <code>1</code></p>
  <pre><code>cardId = 1
  card_tbl = card_tbl.objects.get(id=cardId)
  print(card_tbl)
  </code></pre>
  <p><strong>The Print returns</strong> instead of specific value example. <code>1</code></p>
  <pre><code>card_tbl object (1)
  </code></pre>
  <p>Then my <strong>second question</strong> is there any way to Query the object to another table like this?</p>
  <pre><code>    cardId = 1
      card_tbls = card_tbl.objects.get(id=cardId)
      cat1 = category1_tbl.objects.get(id=card_tbls)
  </code></pre>
  <p><strong>Models.py</strong></p>
  <pre><code>class main_tbl(models.Model):
    category1 = models.ForeignKey(category1_tbl, models.DO_NOTHING, blank=True, null=True)
    category2 = models.ForeignKey(category2_tbl, models.DO_NOTHING, blank=True, null=True)
    title = models.CharField(max_length=200,blank=True, null=True)
    description = models.CharField(max_length=1500,blank=True, null=True)
    requested_by = models.CharField(max_length=200,blank=True, null=True)
    path = models.CharField(max_length=1000,blank=True, null=True)
    date_requested = models.DateField(null=True, blank=True)
    status = models.IntegerField(max_length=60, default=0, null=True)
  
  class category1_tbl(models.Model):
    name = models.CharField(max_length=200,blank=True, null=True)
    isactive = models.CharField(max_length=200,blank=True, null=True)
    created =  models.DateField(null=True, blank=True)
    path = models.CharField(max_length=1000,blank=True, null=True)
    modify = models.DateField(null=True, blank=True)
    created_by = models.CharField(max_length=1000,blank=True, null=True)
  
  class category2_tbl(models.Model):
    category1 = models.ForeignKey(category1_tbl, models.DO_NOTHING, blank=True, null=True)
    priority = models.ForeignKey(priority_tbl, models.DO_NOTHING, blank=True, null=True)
    name = models.CharField(max_length=200,blank=True, null=True)
    isactive = models.CharField(max_length=200,blank=True, null=True)
    created =  models.DateField(null=True, blank=True)
    modify = models.DateField(null=True, blank=True)
    created_by = models.CharField(max_length=200,blank=True, null=True)
  </code></pre>
  <p>Thanks in advance!</p>