Commits

Anonymous committed 0ad45c4

Removed models.py -- not used.

Comments (0)

Files changed (1)

relaxlog/weblog/models.py

-from couchdb.schema import View, Document, TextField, DateField
-
-from datetime import date
-
-class Article(Document):
-    
-    title = TextField()
-    date = DateField(default=date.today)
-    content = TextField()
-    
-    latest_articles = View('blog', '''
-        function(doc){
-          emit([doc.date, doc.title], {
-            title: doc.title, date: doc.date, content: doc.content
-          })
-        }''')