Move ObjectId, DESCENDING to db.util
We used to import those from pymongo and mongokit directly. We should import them from a single place. So let's try db.util for this.
This commit is contained in:
@@ -15,8 +15,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from webob import Response, exc
|
||||
from pymongo import DESCENDING
|
||||
from mongokit import ObjectId
|
||||
from mediagoblin.db.util import ObjectId, DESCENDING
|
||||
import wtforms
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user