Hi, thank you for your input.
The trouble I am having is that I have a polish database of users with
polish letters in their names and surnames. Now not all international
users have access to polish letters on their system therefore I need
to be able to let a user enter English letters like "L" i
It might be easier to write a manager depending on what exactly you're
trying to do. In my opinion you should write an operator for a
database feature that you're trying to implement but if you're trying
to cleanup text or transform text in some way... I think a manager
might be a better solution.
On 4 Mag, 20:02, Karen Tracey wrote:
> I don't understand how this could have worked under 1.0.2 (and don't have
> time to test at the moment) since the doc for upload to has always included
> this note:
I know that note but it I tried to use upload_to as described above
(but with ModelForms) an
On Mon, 2009-05-04 at 03:26 -0700, pbzRPA wrote:
> I would like to know if anyone knows how to create custom operators
> for querysets.
>
> Currently you can do something like:
>
> foo.objects.filter(myfield__icontains = x)
>
> I would like to add my own operator so I can do something like:
>
If you want to get this into Django, I think you'll need to provide a solid
proof of concept that shows you can work around the objections raised in
this thread (graceful degradation, backwards compatibility) and, more
importantly, that shows this is something actually useful and wanted.
It would
On Mon, May 4, 2009 at 1:26 PM, skam wrote:
>
> I am using inline formsets to save multiple "Photo" models related
> with "Company" model, but "Photo" instance's pk is set to None. I need
> it to set the upload directory and filename using the pk value:
>
> Sample model:
>
> def get_photo_image_
I am using inline formsets to save multiple "Photo" models related
with "Company" model, but "Photo" instance's pk is set to None. I need
it to set the upload directory and filename using the pk value:
Sample model:
def get_photo_image_path(instance, filename):
filename = '%s%s' % (instance
Hi,
> There's still a benefit, because you're sending passwords in the clear
> much less frequently--an imperfect improvement is still an
> improvement. (Similarly, self-signed SSL certificates are much more
> secure than plaintext, despite what your browser's ill-conceived
> warnings might want
I would like to know if anyone knows how to create custom operators
for querysets.
Currently you can do something like:
foo.objects.filter(myfield__icontains = x)
I would like to add my own operator so I can do something like:
foo.objects.filter(myfield__converttext = x)
where "converttext" w