Changeset bb5e0f5
- Timestamp:
- 05/22/07 16:25:40 (6 years ago)
- Branches:
- master, crem, crem2, dev, dev2, diadems, forma, generic, instru_search, lam, nlivemulti, production, release/1.4.4, security, social, storage, test, video
- Children:
- ccf0587
- Parents:
- b0c4a7a
- git-author:
- olivier <> (05/22/07 16:25:40)
- git-committer:
- olivier <> (05/22/07 16:25:40)
- File:
-
- 1 edited
-
telemeta/models.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
telemeta/models.py
r1950442 rbb5e0f5 17 17 from telemeta.core import * 18 18 from telemeta import dublincore as dc 19 from xml.dom import getDOMImplementation19 from xml.dom.minidom import getDOMImplementation 20 20 21 21 # Regular (sub) expression for matching/validating media objects IDs … … 206 206 ) 207 207 208 def without_collection(self): 209 "Find items which do not belong to any collection" 210 qs = super(MediaItemManager, self).get_query_set() 211 return qs.extra( 212 where = ["collection_id NOT IN (SELECT id FROM telemeta_collection)"]); 213 208 214 class MediaItem(models.Model, MediaCore): 209 215 "Describe a item with metadata"
Note: See TracChangeset
for help on using the changeset viewer.
