In Django Admin.StackedInline is not working in OneToOneField?

2020-08-14 Thread puneetm...@gmail.com
Below is my Base class class User(AbstractUser): class Meta: verbose_name =_("Student") verbose_name_plural = _("Students") ROLE = ( ('STUDENT', 'Student'), ('TEACHER', 'Teacher'), ('STUDENT-TEACHER', 'Student-Teacher') ) username = models.CharField(verbose_name=_('Username'), max_length=100,

Django admin.stackedinline

2014-04-05 Thread Anderson
Hi there Does anyone know how I show the data in admin.Stackedinline but the user can add but not change. I am trying has_change_permission as false but it's not showing the old data it just allow me to add a new data. I would like to see the list of data but not edit. There is in admin.ModelAd