Custom Comment Form - post_comment()

2008-09-01 Thread oversize
Hello, i just had the following problem and am not sure whether this is the way its wants to be: I used {% get_comment_form for foo as form %} to build my own custom form. The Form is very simple because only logged in user can access the page where one would be able to comment. Which is why i

Change QuerySet of ModelMultipleChoiceField in a ModelForm

2008-10-02 Thread oversize
Hello in a ModelForm based Form, i have a ManyToManyField. I want only specific objects of the Relation to be shown in the Forms ModelMultipleChoiceField. For my example, Motive and Textile belong to the same Project, and i want only the Motives to Show in the ModelMultipleChoiceField that are re

Backend does not find views

2007-10-28 Thread oversize
Hello, my (very strange) problem is: When i want to enter the backend, i get an import error that "ViewDoesNotExist at /admin/ Could not import views. Error was: No module named views". The Highlightet code is in Line 28 of 'django/contrib/admin/templates/ admin/base.html' and the statement that d