Skip to content

Commit

Permalink
Fixing a few bugs from testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeman committed Dec 2, 2010
1 parent 2d90905 commit b6d738a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mimesis/forms.py
Expand Up @@ -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
Expand All @@ -44,7 +44,7 @@ def save(self, request, *args, **kwargs):

class AudioAssociationForm(forms.ModelForm):

caption = forms.TextField()
caption = forms.CharField()

class Meta:
model = AudioAssociation
Expand Down
1 change: 1 addition & 0 deletions mimesis/templates/mimesis/add_form.html
@@ -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">
Expand Down
2 changes: 1 addition & 1 deletion mimesis/urls.py
@@ -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"),
Expand Down

0 comments on commit b6d738a

Please sign in to comment.