Re: How to make admin duplicate action for an object with all related foreign key and one-to-one fields?

2022-01-11 Thread Alibek Khojabekov
s a request. >> >> On Tue, 11 Jan 2022, 12:24 pm Alibek Khojabekov, >> wrote: >> >>> Hello everyone, >>> I am bit confused about making duplicate of a Course object in admin >>> actions with all related child objects. So my Models are: >>&

How to make admin duplicate action for an object with all related foreign key and one-to-one fields?

2022-01-10 Thread Alibek Khojabekov
Hello everyone, I am bit confused about making duplicate of a Course object in admin actions with all related child objects. So my Models are: class Course(models.Model): PROGRAMMING = 1 DESIGN = 2 ROBOTICS = 3 DIGITAL_LITERACY = 4 IT_ENTREPRENEURSHIP = 5 CATEGORY_CHOICES = ( (PROGRAMMING, 'Прог