add polymorphic_internal_model_fields
parent
acb7452c46
commit
2e29b8f093
|
|
@ -938,6 +938,9 @@ class PolymorphicModel(models.Model):
|
|||
p_classname = models.CharField(max_length=100, default='')
|
||||
p_appname = models.CharField(max_length=50, default='')
|
||||
|
||||
# some applications want to know the name of fields that are added to its models
|
||||
polymorphic_internal_model_fields = [ 'p_classname', 'p_appname' ]
|
||||
|
||||
objects = PolymorphicManager()
|
||||
base_objects = models.Manager()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue