To create admin interface to edit some field, which is best practice? Customize default Django admin or create admin template?
I want to edit status
field via admin. But others field, admin can't edit.. In this scenario can I write new view and template for admin or just customize the default admin panel?
class SendProduct(models.Model):
PAYMENT_CHOICE = (
('A', 'Advanced'),
('C', 'COD'),
)
item_name = models.CharField(max_length=200)
item_details = models.TextField()
delivery_address = models.TextField()
payment_type = models.CharField(max_length=1, choices=PAYMENT_CHOICE)
payable_amount = models.IntegerField(default=0)
delivery_charge = models.IntegerField(default=0)
qr_code = models.ImageField(upload_to='qrcode', blank=True, null=True)
user = models.ForeignKey(Profile, on_delete=models.CASCADE)
status = models.IntegerField(default=0)