diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-03-20 23:55:28 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-03-20 23:55:28 +0100 |
commit | 8fd81053b48f02d16340e2e82f6c43bbffc05ce8 (patch) | |
tree | 061b8280d7e7ec545074a43f433a8122f4250e89 | |
parent | b829595334e10454a6528bdac944d781f6102145 (diff) | |
download | mediagoblin-8fd81053b48f02d16340e2e82f6c43bbffc05ce8.tar.lz mediagoblin-8fd81053b48f02d16340e2e82f6c43bbffc05ce8.tar.xz mediagoblin-8fd81053b48f02d16340e2e82f6c43bbffc05ce8.zip |
More standard media_data model for ascii.
ascii doesn't use media_data at all. So it needs the most
basic media_data model. Fix it to take the current form.
-rw-r--r-- | mediagoblin/media_types/ascii/models.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mediagoblin/media_types/ascii/models.py b/mediagoblin/media_types/ascii/models.py index 043a858a..a35e6958 100644 --- a/mediagoblin/media_types/ascii/models.py +++ b/mediagoblin/media_types/ascii/models.py @@ -25,9 +25,9 @@ from sqlalchemy import ( class AsciiData(Base): __tablename__ = "ascii__mediadata" - id = Column(Integer, primary_key=True) - media_entry = Column( - Integer, ForeignKey('core__media_entries.id'), nullable=False) + # The primary key *and* reference to the main media_entry + media_entry = Column(Integer, ForeignKey('core__media_entries.id'), + primary_key=True) DATA_MODEL = AsciiData |