Permalink
Browse files

Fixing a few bugs from testing.

  • Loading branch information...
1 parent 2d90905 commit b6d738a09cf79fc44e8604201115d819781a1e18 @lukeman lukeman committed Dec 2, 2010
Showing with 4 additions and 3 deletions.
  1. +2 −2 mimesis/forms.py
  2. +1 −0 mimesis/templates/mimesis/add_form.html
  3. +1 −1 mimesis/urls.py
View
@@ -18,7 +18,7 @@ def save(self, request, *args, **kwargs):
class ImageAssociationForm(forms.ModelForm):
- caption = forms.TextField(blank=True)
+ caption = forms.CharField()
class Meta:
model = ImageAssociation
@@ -44,7 +44,7 @@ def save(self, request, *args, **kwargs):
class AudioAssociationForm(forms.ModelForm):
- caption = forms.TextField()
+ caption = forms.CharField()
class Meta:
model = AudioAssociation
@@ -1,6 +1,7 @@
{% if form %}
<form method="post" enctype="multipart/form-data" action="{{ form_url }}" class="add-media">
+ {% csrf_token %}
<input type="hidden" name="next" value="{{ next }}"/>
{{ form.as_p }}
<p class="submit">
View
@@ -1,7 +1,7 @@
from django.conf.urls.defaults import patterns, url
-urlpatterns = patterns("upload.views",
+urlpatterns = patterns("mimesis.views",
# Images
url(r"^/image/add/", "add_image", name="add_image"),

0 comments on commit b6d738a

Please sign in to comment.