Re: dates with a different format in the db

2009-08-12 Thread Vokial
Thanks a lot! I'll try both the string filters and read carefully that part of the documentation.. eventually i'll try to create a custom subclass. Again you've been very helpful, thanks Malcolm! --~--~-~--~~~---~--~~ You received this message because you are sub

Re: dates with a different format in the db

2009-08-12 Thread Vokial
You've been very helpful, thanks. The problem here is that i have to use these fields as proper DateFields because i have to do some operations with these dates, like making monthly/daily reports, searching entries in a specific period of time and so on... I guess i have to convert these strings t

dates with a different format in the db

2009-08-11 Thread Vokial
Hi! In a db i have, already filled up with data, i have a varchar field which contains dates formatted like "mmdd". Is there a way to make Django recognise that field as a proper DateField even if the formatting is different than the usual "-mm-dd" ? Because i can't alter the data in that

Issue with test cookies

2009-03-26 Thread Vokial
Hello I need to test if the user's browser accepts cookies or not.. and i realized i can't use set_test_cookie() : That problem happens in a site which has a poll, included as a little block, in the homepage. The user is able to vote directly from the homepage just by clicking on the "vote" button

Re: Changing the default filter values in the admin site?

2009-01-20 Thread Vokial
Same problem here.. and as Eric, I couldn't understand the FilterSpec thing.. It seems that every filter is a GET request but it's not clear where to specify it.. Thanks in advance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

sorting and grouping problem

2008-12-03 Thread Vokial
Hello, i have a sorting and grouping problem: This is the situation: the app i'm working on has to sort cinemas, cinema shows, movies and rooms In a model "Shows" i stored each data about which cinema, which room, what time and which film..so now i have a great number of show objects to sort in o

populating forms using models

2008-10-31 Thread Vokial
Hi I'm working on a registration form which is based, among the others, on this model: class City(models.Model): prov_name = models.CharField(verbose_name='Provincia',max_length=50) (obviously i'm writing down just the field i'm interested in to save some space..) In the form i have to put

order of apps in the admin panel

2008-10-13 Thread Vokial
Hello! Is there a way to change the order of the applications shown in the admin page? If i'm not wrong it used to be the order in which the applications were written in the INSTALLED_APPS but now it seems to follow the alphabetic order.. I'd like to give an arbitrary order, if it's possible...

Re: ordering results of a queryset by foreign fields

2008-09-22 Thread Vokial
Mmmmh both of you made it clear: i've got to upgrade to django 1.0... Again thank you for your help, i'll see what i can do about that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post t

Re: ordering results of a queryset by foreign fields

2008-09-22 Thread Vokial
and i'm trying very hard to make it work anyway.. On 22 Set, 16:19, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Mon, Sep 22, 2008 at 10:04 AM, Vokial <[EMAIL PROTECTED]> wrote: > > > Thank you for the answer. > > > I already read the pa

Re: ordering results of a queryset by foreign fields

2008-09-22 Thread Vokial
Thank you for the answer. I already read the page you linked me (the django documentation is becoming my second home :) ) and i tried what you said but i got this error: OperationalError at /search/1/ (1054, "Unknown column 'images_version.shoot__subject__photographer__surname' in 'order clause'"

ordering results of a queryset by foreign fields

2008-09-22 Thread Vokial
e is fixed, i can't change it because i'm working for a client who asked specifically this structure. I did some research in this group but i couldn't find the answer.. can anyone please help me writing the correct syntax for the queryset? Thank you in advance! -Vokial- PS. sor