so I have a Model that contains a ManyToMany attribute and in the fieldset this displays a full list for this attribute to edit or create. But, in this model I want to show just the active objects on fieldset for create/edit, how can I do it? I tried to write functions, get functions... The only way is merge a function and readonly but is not editable...
class MyModel(models.Model):
active: booleanField()
So, I want to show in fieldsets just the active=True objects
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.