admin.py dosyasına bir kaç satır kod yazarsan çok daha kolay olurGerçekten inanılmaz birşey ... Daha bir tek satır html, css, veya python kodu yazmadım. Sadece database sütunlarının tanımlarını yaptım o kadar.
list_display
list_filter
search_fields
Request URL
https://www.ozdisan.com/api/layout/header?text=mcp3008
{
"variants": [
{
"id": "01000000-0a83-0a58-0c65-08dda834f8bc",
"slug": "microchip-mcp3008-i-sl-361574",
"mainCategoryId": "00000000-0000-0000-0000-0000000003b7",
"sku": "MCP3008-I/SL",
"description": "IC-3008 ADC 10BIT 2.7V 8CH SPI 16SOIC",
"category": {
"id": "00000000-0000-0000-0000-0000000003b7",
"slug": "analogtan-digitale-donusturucu-entegreler-adc-225",
"slugs": [
{
"slug": "analog-to-digital-converters-adc-225",
"langCode": "en",
"isDefault": false
},
{
"slug": "analogtan-digitale-donusturucu-entegreler-adc-225",
"langCode": "tr",
"isDefault": false
},
{
"slug": "Analog-to-Digital-Converters-ADC-225",
"isDefault": true
}
]
}
}
],
"isSingleMatch": false
}
"productResponseData": {
"projectItems": [],
"isProject": false,
"id": "01000000-0a83-0a58-0c65-08dda834f8bc",
"productId": "01000000-0a83-0a58-0c07-08dda834f8bc",
"erpRefId": "361574",
"sku": "MCP3008-I/SL",
"referenceCode": "Variant-1822733",
"productStatus": "ACTIVE",
"variantPricingType": "PRC_QTY",
"variantPackageType": "TUBE",
"description": "IC-3008 ADC 10BIT 2.7V 8CH SPI 16SOIC",
"detailedDescription": "MICROCHIP",
"upcomingStock": 0,
"currencyCode": "USD",
"isDiscounted": false,
"isFixedPrice": false,
"discountRate": 0,
"isSpecial": false,
"isRohs": true,
"leadTime": "4-6 Hafta",
"availability": {
"mpq": 50,
"minimumOrderQuantity": 1,
"orderQuantityMultiplier": 1,
"totalStock": 200,
"isDiscountAllowed": true,
"maxDiscountRate": 0,
"isShowPrice": true,
"isShowStock": true
},
"manufacturer": {
"id": "01000000-0a81-0a58-3de5-08dd4770ce26",
"name": "MICROCHIP",
"slug": "microchip",
"isRepresentativeOffice": false,
"medias": []
},
"categories": [
{
"id": "00000000-0000-0000-0000-0000000003b7",
"name": "Analogtan Digitale Dönüştürücü Entegreler - ADC",
"slug": "analogtan-digitale-donusturucu-entegreler-adc-225",
"isMain": true
}
],
"properties": [
{
"propertyId": "00000000-0000-0000-0000-000000002607",
"name": "Özellikler",
"value": "10-Bit ADC with SPI Serial Interface"
},
{
"propertyId": "00000000-0000-0000-0000-0000000025dd",
"name": "Montaj Tipi",
"value": "SMT"
},
{
"propertyId": "00000000-0000-0000-0000-0000000025df",
"name": "Kılıf / Kasa",
"value": "SOIC16"
},
{
"propertyId": "00000000-0000-0000-0000-000000002636",
"name": "Çözünürlük",
"value": "10 bits"
},
{
"propertyId": "00000000-0000-0000-0000-000000002625",
"name": "Besleme Voltajı",
"value": "2.7 to 5.5 V"
},
{
"propertyId": "00000000-0000-0000-0000-0000000026bd",
"name": "Giriş Tipi",
"value": "Single Ended"
},
{
"propertyId": "00000000-0000-0000-0000-000000002635",
"name": "Arayüz",
"value": "SPI"
},
{
"propertyId": "00000000-0000-0000-0000-000000002621",
"name": "Kanal Sayısı",
"value": "8"
},
{
"propertyId": "00000000-0000-0000-0000-0000000025e4",
"name": "Çalışma Sıcaklığı",
"value": "-40 °C ~ +85 °C"
}
],
"medias": [
{
"path": "https://cdn.ozdisan.com/public/product/assets/MCP3008.pdf",
"field": "Datasheet",
"contentType": "application/pdf"
},
{
"path": "https://cdn.ozdisan.com/public/product/assets/SOIC16.JPG",
"field": "Picture",
"contentType": "image/jpeg"
}
]
},