I have a model with a boolean value like that:
class TagCat(models.Model):
by_admin = models.BooleanField(default=True)
This appears as a checkbox in admin.
- How could I use this as a radio button in admin?
- Also, how do I make it be always with a certain selected value in admin?
- Also, I want the default value to be the opposite, when a non-admin user adds a
TagCat
. This field should be hidden from him.
Can someone tell me how to do this? Django documentation doesn't seem to go in such details.