aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/journal
diff options
context:
space:
mode:
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.