From 2c749a18db7886b7c9931f2b98eac6f099d304d2 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 25 Oct 2015 22:25:40 +0000 Subject: Tweak binary field types to get SQLite3 working as a Django ORM backend. Switch yamltest's default database configuration to sqlite3. MySQL still has character set issues, which are almost certainly to do with the communication channel rather than the database tables. It's possible that one of the newer DB API drivers for MySQL fixes this, might be worth trying one of them at some point (see the "MySQL notes" discussion of MySQL DB API drivers in the Django documentation). svn path=/branches/tk705/; revision=6149 --- rpki/pubdb/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rpki/pubdb') diff --git a/rpki/pubdb/models.py b/rpki/pubdb/models.py index 446867b8..2b6d67e4 100644 --- a/rpki/pubdb/models.py +++ b/rpki/pubdb/models.py @@ -20,7 +20,7 @@ Django ORM models for pubd. from __future__ import unicode_literals from django.db import models -from rpki.fields import BlobField, CertificateField, SundialField +from rpki.fields import CertificateField, SundialField from lxml.etree import Element, SubElement, tostring as ElementToString import os @@ -303,7 +303,7 @@ class Delta(models.Model): class PublishedObject(models.Model): uri = models.CharField(max_length = 255) - der = BlobField() + der = models.BinaryField() hash = models.CharField(max_length = 64) client = models.ForeignKey(Client) session = models.ForeignKey(Session) -- cgit v1.2.3