aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/journal
diff options
context:
space:
mode:
authorbryan newbold <bnewbold@snark.mit.edu>2009-01-19 21:31:39 -0500
committerbryan newbold <bnewbold@snark.mit.edu>2009-01-19 21:31:39 -0500
commit369c0fe369fd1501380f8fb65fe0a9d773003ac4 (patch)
treea17d284d7b7b3549f12185998cc1916154ce8f05 /bn_django/journal
parent9cff073ea5d70f5382cd259fdb3238d83e937767 (diff)
downloadbnewnet-369c0fe369fd1501380f8fb65fe0a9d773003ac4.tar.gz
bnewnet-369c0fe369fd1501380f8fb65fe0a9d773003ac4.zip
beginings of a new app
Diffstat (limited to 'bn_django/journal')
-rw-r--r--bn_django/journal/__init__.py0
-rw-r--r--bn_django/journal/models.py56
-rw-r--r--bn_django/journal/views.py1
3 files changed, 57 insertions, 0 deletions
diff --git a/bn_django/journal/__init__.py b/bn_django/journal/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/bn_django/journal/__init__.py
diff --git a/bn_django/journal/models.py b/bn_django/journal/models.py
new file mode 100644
index 0000000..89392b2
--- /dev/null
+++ b/bn_django/journal/models.py
@@ -0,0 +1,56 @@
+from django.db import models
+
+class SubJournal(models.Model):
+ name = models.CharField("full title"), blank=False,max_length=196)
+ date = models.DateField("date started"), auto_now_add=True)
+ slug = models.SlugField()
+ description = models.TextField("description of content",blank=True)
+
+class JournalCommon(models.Model):
+ author =
+ date
+ edit_date
+ subjournal
+ defunct
+ private
+
+ class Meta:
+ abstract = True
+
+class Entry():
+ html_content
+ title
+ slug
+
+class MicroEntry(models.Model):
+ html_content
+ text_content
+
+class Artifact(models.Model)
+ html_caption
+ entry
+
+ class Meta:
+ abstract = True
+
+class ImageArtifact(Artifact)
+ original_file
+ thumb_file
+ pass
+
+class VideoArtifact(Artifact)
+ codec
+ filepath
+ external_url
+ pass
+
+class CodeArtifact(Artifact)
+ code
+ language
+ pass
+
+class LinkArtifact(Artifact)
+ url
+ pass
+
+
diff --git a/bn_django/journal/views.py b/bn_django/journal/views.py
new file mode 100644
index 0000000..60f00ef
--- /dev/null
+++ b/bn_django/journal/views.py
@@ -0,0 +1 @@
+# Create your views here.