Re: Struggling with formsets

2015-02-19 Thread Werner Brand
Thanks for the reponse! My template looks like this: {{ formset.management_form }} {{ formset }} {% csrf_token %} Here is the print request.POST: form-1-salaryform-MAX_NUM_FORMSform-0-surnameform-0-nameform-TOTAL_FORMSform-MIN_NUM_FORMSform-0-idform-1-nameform-

Struggling with formsets

2015-02-19 Thread Werner Brand
I cannot seem to figure this, although I suspects it is really elementary: I have two models: class Employee(models.Model): id_number = models.CharField(max_length=13) surname = models.CharField(max_length=100) name = models.CharField(max_length=100) class Payslip(models.Model): surname =

How can you include annotated results in a serialized QuerySet

2010-05-20 Thread Werner
Hello, How can you include annotated results in a serialized QuerySet? I have this serialized query: serializers.serialize('json', Song.objects.filter(is_playing=False).annotate(nr_votes=Count('votes')).order_by('-nr_votes')) However the key/value pare {'nr_votes': number} is not include into t

Re: baffling i18n problem after unicode update

2007-09-20 Thread Werner F. Bruhin
ng of the .po file, or no encoding defined in it? Werner --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsub

Re: application autentication

2007-06-29 Thread Werner
On 29 Jun., 09:29, Enquest <[EMAIL PROTECTED]> wrote: > If I where to write a small application with Django that needs > authentication on the user level (only edit what you or a group can > edit)... Can I then use the authention model for this? Yes, this may help you too -> http://code.google.co

Re: Another Django Site with Source Code

2007-06-06 Thread Werner
Hello Kelvin, just a few sugsession: * use sqlite3 to have a simple & fast setup * use CACHE_BACKEND = 'dummy:///' (again easier for the first steps) * remove Google Analytics from the base.html Template :-)) I am still a django virgin and very frustrated there aren't more *good & readable* sou

Re: Admin custom widget

2007-05-22 Thread Jens Werner
I found the solution. It is very simple. I need only a directory named 'widget' in my project-template-directory. Thats all! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gr

Admin custom widget

2007-05-15 Thread Jens Werner
Hi everybody, I'm creating a new widget/template for my admin interface (image_with_thumbnail.html for nesh.thumbnail.field.ImageWithThumbnailField). For the moment it works fine, if I put the image_with_thumbnail.html in django/contrib/admin/templates/widget, but I don't want patch the django-pa