aboutsummaryrefslogtreecommitdiffstats
path: root/bn_django/journal/models.py
diff options
context:
space:
mode:
authorbnewbold <bnewbold@eta.mit.edu>2009-01-25 13:05:25 -0500
committerbnewbold <bnewbold@eta.mit.edu>2009-01-25 13:05:25 -0500
commit75bc6a976f98e36a9426e6115d3f628a8fa73762 (patch)
treeabf42e0d4b94146506e0208a08afe8758eb11a93 /bn_django/journal/models.py
parent296dc07f010d8692028db682d02ef3e88e525f01 (diff)
downloadbnewnet-75bc6a976f98e36a9426e6115d3f628a8fa73762.tar.gz
bnewnet-75bc6a976f98e36a9426e6115d3f628a8fa73762.zip
whew artifact stuff, all basic style
Diffstat (limited to 'bn_django/journal/models.py')
-rw-r--r--bn_django/journal/models.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/bn_django/journal/models.py b/bn_django/journal/models.py
index 8836122..d296f1f 100644
--- a/bn_django/journal/models.py
+++ b/bn_django/journal/models.py
@@ -40,9 +40,9 @@ class MicroEntry(JournalCommon):
text_content = models.TextField("text version of content", blank=True,null=True)
class Artifact(JournalCommon):
- html_caption = models.TextField("html format caption", blank=False)
- text_caption = models.TextField("text format caption", blank=True,null=True)
- entry = models.ForeignKey(Entry, blank=True)
+ html_caption = models.TextField("html format caption", blank=True)
+ text_caption = models.TextField("text format caption", blank=True)
+ entry = models.ForeignKey(Entry, blank=True, null=True)
title = models.CharField("title of the artifact", max_length=256, blank=True)
class Meta:
@@ -59,12 +59,11 @@ class CodeArtifact(Artifact):
blank=True)
class LinkArtifact(Artifact):
- url = models.URLField("external link to something wonderful!", blank=True)
+ url = models.URLField("external link to something wonderful!",verify_exists=False)
class ImageArtifact(Artifact,Photo):
"""Multiply inherets from the photo app
"""
- pass
def build_display_images(sender, instance, signal, *args, **kwargs):
"""Simple hook for save-after trigger
@@ -83,7 +82,6 @@ from django.contrib import admin
admin.site.register(Entry)
admin.site.register(MicroEntry)
admin.site.register(SubJournal)
-admin.site.register(Artifact)
admin.site.register(LinkArtifact)
admin.site.register(CodeArtifact)
admin.site.register(VideoArtifact)