mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Simplified imports from django.db and django.contrib.gis.db.
This commit is contained in:
committed by
Mariusz Felisiak
parent
469bf2db15
commit
335c9c94ac
@@ -1,12 +1,10 @@
|
||||
from django.db import models
|
||||
from django.db.models.fields.related import (
|
||||
ForeignObjectRel, ReverseManyToOneDescriptor,
|
||||
)
|
||||
from django.db.models.fields.related import ReverseManyToOneDescriptor
|
||||
from django.db.models.lookups import StartsWith
|
||||
from django.db.models.query_utils import PathInfo
|
||||
|
||||
|
||||
class CustomForeignObjectRel(ForeignObjectRel):
|
||||
class CustomForeignObjectRel(models.ForeignObjectRel):
|
||||
"""
|
||||
Define some extra Field methods so this Rel acts more like a Field, which
|
||||
lets us use ReverseManyToOneDescriptor in both directions.
|
||||
|
||||
Reference in New Issue
Block a user