i can not get in varartionb in command line

in my e comerce project i want to create variations for the products and here is my entire code model.py

from django.db import models
from catagory.models import catagory
from django.urls import reverse

# Create your models here.
class Product(models.Model):
    product_name     =  models.CharField(max_length=200,unique=True)
    slug        =  models.SlugField(max_length=200,unique=True)
    description =  models.TextField(max_length=500,blank=True)
    price       =  models.IntegerField()
    image       =  models.ImageField(upload_to='photos/Product')
    stock       =  models.IntegerField()
    is_available=  models.BooleanField(default=True)
    catagory    =  models.ForeignKey(catagory,on_delete=models.CASCADE)
    created_date = models.DateTimeField(auto_now_add=True)
    modified_date = models.DateTimeField(auto_now=True)
    def __str__(self):
        return self.product_name

    def get_url(self):
        return reverse('product_detial',args=[self.catagory.slug,self.slug])
class VariationManager(models.Manager):
    def colors(self):
        return super(VariationManager,self).filter(varation_category='color',is_active=True)
    def sizes(self):
        return super(VariationManager,self).filter(varation_category='size',is_active=True)
varation_category_choice =(
    ('color', 'color'),
    ('size', 'size'),


class Variation(models.Model):
    product = models.ForeignKey(Product,on_delete=models.CASCADE)
    varation_category = models.CharField(max_length=100,choices= varation_category_choice)
    varation_value = models.CharField(max_length=100)
    is_active  = models.BooleanField(default=True)
    created_date = models.DateTimeField(auto_now = True)
    objects = VariationManager()

    def __str__(self):
        return self.varation_value


def add_cart(request,product_id):
    product = Product.objects.get(id=product_id)
    if request.method == 'POST':
        for item in request.POST:
            key = item
            value = request.POST[key]
                varation = Variation.objects.get(varation_category__iexact=key,varation_value__iexact=value)

and when i tray to add new product it added successfully but it dose not print the variation in the command line i don’t know why it is not working please help me?

Verify that the key and value being supplied in the POST is in your database.

I see where you’ve got a line commented out to print the key and value. Get the list of values being supplied and run your query from within the shell to verify that the query will return data.

it worked and give me such a like

[13/Jan/2022 20:45:27] "GET /carts/ HTTP/1.1" 200 5641
[13/Jan/2022 20:45:35] "GET /store/ HTTP/1.1" 200 11369
[13/Jan/2022 20:45:37] "GET /store/catagory/shirts/blue-shirt/ HTTP/1.1" 200 8282
csrfmiddlewaretoken jLXzGwS7wMI5iYayFFbAp8swrpyWCQL1s6vix08ByZSkOnVH49jpEZLeuuL5Q5f8
color read
size large
[13/Jan/2022 20:45:43] "POST /carts/add_cart/2/ HTTP/1.1" 302 0
[13/Jan/2022 20:45:43] "GET /carts/ HTTP/1.1" 200 8001

which means key and value being supplied in the POST is in my database ,and i got this in the shell

>>> u = Cart.objects.all
>>> u
<bound method BaseManager.all of <django.db.models.manager.Manager object at 0x00000022C9CC1608>>