mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-27 16:40:03 +03:00
There is already a reverse relation called nullable_sources
This commit is contained in:
parent
2b83fac035
commit
98e9caba9f
|
@ -85,7 +85,7 @@ class NullableForeignKeySource(RESTFrameworkModel):
|
|||
class NullableUUIDForeignKeySource(RESTFrameworkModel):
|
||||
name = models.CharField(max_length=100)
|
||||
target = models.ForeignKey(ForeignKeyTarget, null=True, blank=True,
|
||||
related_name='nullable_sources',
|
||||
related_name='nullable_uuid_sources',
|
||||
verbose_name='Optional target object',
|
||||
on_delete=models.CASCADE)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user