seller_central_backend/get_columns.py
vickytechkey b7dac2f02d
All checks were successful
Deploy Beta (NATIVE) / deploy (push) Successful in 37s
test: add utility scripts for testing registration and profile updates
2026-09-23 11:46:28 +05:30

8 lines
236 B
Python

import os
import django
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'config.settings')
django.setup()
from api.models import SupplierProfile
columns = [f.name for f in SupplierProfile._meta.get_fields()]
print("Columns:", columns)