mirror of
https://github.com/django/django.git
synced 2025-04-01 12:06:43 +00:00
In an ideal world, nothing except django.db.models.query should have to import stuff from django.models.sql.*. A few things were needing to get hold of sql.constants.LOOKUP_SEP, so this commit moves it up to django.db.models.constants.LOOKUP_SEP. There are still a couple of places (admin) poking into sql.* to get QUERY_TERMS, which is unfortunate, but a slightly different issue and harder to adjust.
8 lines
118 B
Python
8 lines
118 B
Python
"""
|
|
Constants used across the ORM in general.
|
|
"""
|
|
|
|
# Separator used to split filter strings apart.
|
|
LOOKUP_SEP = '__'
|
|
|