411: Add relationship and backrefs to media_data tables.
authorElrond <elrond+mediagoblin.org@samba-tng.org>
Wed, 28 Mar 2012 11:19:11 +0000 (13:19 +0200)
committerElrond <elrond+mediagoblin.org@samba-tng.org>
Wed, 28 Mar 2012 11:21:47 +0000 (13:21 +0200)
commit02f07bfe145fb4c3a31101c48202224d803004da
tree2df4b8368cb5e57da06cbb989c9d0cd28bf99369
parent352a1807659b0977c0ccdb8d4bad64aa4f5b5277
411: Add relationship and backrefs to media_data tables.

Adding proper relationship()s and especially backref()s
will delete media_data rows along with the main MediaEntry.
This fixes #411.
mediagoblin/media_types/ascii/models.py
mediagoblin/media_types/image/models.py
mediagoblin/media_types/video/models.py