There are two models of tables.

class Catalog(models.Model): name = models.CharField(max_length=200) def __str__(self): return self.name class Item(models.Model): name = models.CharField(max_length=200) question = models.ForeignKey(Catalog, on_delete=models.CASCADE) def __str__(self): return self.name 

You need to go to the Item list, select some and move them to a specific directory. For example, selected items in the picture, move to Catalog 3. enter image description here

How can I do that?

    1 answer 1

    Need to look in the direction of Admin action

    • admin.ModelAdmin.action_form
    • admin.ModelAdmin.action