mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #25715 -- Fixed Model.refresh_from_db() with ForeignKey w/on_delete=SET_NULL.
This commit is contained in:
@@ -34,6 +34,7 @@ class SelfRef(models.Model):
|
||||
null=True, blank=True,
|
||||
related_name='+',
|
||||
)
|
||||
article = models.ForeignKey(Article, models.SET_NULL, null=True, blank=True)
|
||||
|
||||
def __str__(self):
|
||||
# This method intentionally doesn't work for all cases - part
|
||||
|
||||
Reference in New Issue
Block a user