mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #19964 -- Removed relabel_aliases from some structs
Before there was need to have both .relabel_aliases() and .clone() for many structs. Now there is only relabeled_clone() for those structs where alias is the only mutable attribute.
This commit is contained in:
@@ -470,3 +470,8 @@ class Paragraph(models.Model):
|
||||
|
||||
class Page(models.Model):
|
||||
text = models.TextField()
|
||||
|
||||
class MyObject(models.Model):
|
||||
parent = models.ForeignKey('self', null=True, blank=True, related_name='children')
|
||||
data = models.CharField(max_length=100)
|
||||
created_at = models.DateTimeField(auto_now_add=True)
|
||||
|
||||
Reference in New Issue
Block a user