New project - django-requests

2011-01-13 Thread Gleber
I started a new project on google code, django-requests[1], and i'm looking for opinions, suggestions, help.. The project goal is make a simple and generic way to moderate requests made by users to add, edit or remove objects. Thanks [1] - http://code.google.com/p/django-requests/ -- You

Re: Django ignores generated name by custom storage when a callable upload_to is defined

2010-02-12 Thread Gleber
should handle the rest, as if the upload_to were a string.. Gleber On 13 fev, 04:04, Karen Tracey <kmtra...@gmail.com> wrote: > On Sat, Feb 13, 2010 at 12:09 AM, Gleber <glebi...@gmail.com> wrote: > > I don't know if this is a bug.. Here is the minimal test case: >

Django ignores generated name by custom storage when a callable upload_to is defined

2010-02-12 Thread Gleber
I don't know if this is a bug.. Here is the minimal test case: class CustomStorage(FileSystemStorage): def get_valid_name(self, name): import random return '%s.abc' % (random.randint(100, 999),) def test_uploadto(self,filename): return 'aaa/%s' % filename testA =

Re: help with Django model and 'choices'

2010-02-02 Thread Gleber
Try surround the values of the constants with Decimal("x"), like: APLUS = Decimal("4.33") A = Decimal("4") AMINUS = Decimal("3.67") ... On Feb 2, 4:58 pm, raj wrote: > To populate a ModelMultipleChoiceField of a ModelForm I'd used a hack > similar to Shawn's initial

Re: select_related(field) doesn't use the default manager of the field

2009-08-09 Thread Gleber
Thanks for the reply, This is much more complex than I thought.. I will stay with the way of two queries, better than one query per object.. Gleber --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django

select_related(field) doesn't use the default manager of the field

2009-08-08 Thread Gleber
h only one query? I need this cause I have to display a list of 50+ ModelBs and i can't execute 50+ queries only for that.. Gleber --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post