Then for old_person it ignores the field list and shows all the fields. But for new_person it does show the correct fields but it ignores the admin_class (i think) because it is still showing the delete checkbox.
Am I missing something?
Context:
class PotentialPersonDuplicate(models.Model):
old_person = models.ForeignKey(Person, related_name='possible_newer_duplicates', on_delete=models.CASCADE)
new_person = models.ForeignKey(Person, related_name='possible_older_duplicates', on_delete=models.CASCADE)
class PersonInline(admin.TabularInline):
model = Person
def has_delete_permission(self, request, obj=None):
return False
Hello,
If I write:
Then for old_person it ignores the field list and shows all the fields. But for new_person it does show the correct fields but it ignores the admin_class (i think) because it is still showing the delete checkbox.
Am I missing something?
Context: