Sending automatic emails

2008-11-27 Thread izzy
Hi all! I'm just curious if its possible in django to send automatic emails based on the data in the database? If its possible how can it be implemented? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django us

Re: How to get the values of a field of the model

2008-11-27 Thread izzy
Okay, thanks. That would be my last resort.. But not all users can create reports. I only want to users that have created a report.. I doubt that django don't support this kind of query. I hope not. let me elaborate it again. Reports have following fields in models.py: title category

Re: How add extra data to m2m-field before saving form?

2008-11-27 Thread izzy
if request.method == 'POST': form = EventForm(request.POST) if form.is_valid(): form.save() form.members.add(request.user) # THIS LINE DOESNT WORK form.save_m2m() return HttpResponseRedirect('/events/') else: form = Ev

Re: How to get the values of a field of the model

2008-11-26 Thread izzy
I still don't get it. reports = Report.objects.all() author = # how can I retrieve all author names (author names should be unique) I can't figure it out. please give me direct answer.. --~--~-~--~~~---~--~~ You received this message because you are subscrib

Re: 'str' object has no attribute '_meta' while using comment system

2008-11-26 Thread izzy
bject, you will need to use form in advance > > 2008/11/27 izzy <[EMAIL PROTECTED]> > > > > > Yes I've done that. > > > def packagingreport_details(request, object_id): > >        report = get_object_or_404(PackagingReport, pk=object_id) > >

How to get the values of a field of the model

2008-11-26 Thread izzy
Hi all. I'm new to Django and I would like to get the unique values of a field in a model. For example: Class Report(models.Model): title = models.Charfield category = models... author = models.ForeignKey(auth.User) ... in views.py, how can I retrieve the unique val

Re: 'str' object has no attribute '_meta' while using comment system

2008-11-26 Thread izzy
rrors}) The context form is a PackagingReport Object On Nov 27, 9:51 am, "Chatchai Neanudorn" <[EMAIL PROTECTED]> wrote: > {% get_comment_count for *form *as comment_count %} > > make sure you put the right object (in your code is form, what is it? do you > have tem

'str' object has no attribute '_meta' while using comment system

2008-11-26 Thread izzy
Hi all. I've been having a problem regarding my app using comment system in Django1.0.2. I've used comment so that anyone can comment on the report. When I view the report with the comment using the user that writes a comment it will raise no error but when I tried to login as different user I c

inlineformset_factory: shows only 1 extra even extra=5

2008-11-23 Thread izzy
I'm trying to make use inlineformset_factory to add several data on an object at the sime time. I want to show 5 extra forms but when I view it in browser it only shows 1formsets instead of 5. Here's my view code: formset = inlineformset_factory(PackagingReport, PeopleProblem, max_num=0,

Re: don't escape html tags

2008-11-12 Thread izzy
Hi. I'm new to Django. And I'm having problems with templates. I have a richtext field that stores HTML(using TinyMCE). But when I display it on template it simply renders all in html: http://www.thesynapticleap.org/files/ tsl/images/tinymce_0_0.png" alt="sample image" width="530" height="392"