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

2010-02-12 Thread Karen Tracey
On Fri, Feb 12, 2010 at 10:25 PM, Gleber wrote: > I don't know if this is a bug. If you are not sure it is a bug, the right place to ask is django-users, not here. See: http://docs.djangoproject.com/en/dev/internals/contributing/#id1 Karen -- You received this message because you are subsc

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 = models.F