Re: GSoC Meta refactor: Bikeshedding time!!

2014-08-20 Thread Ivan Kharlamov
On 08/20/2014 04:28 PM, Ivan Kharlamov wrote: > On 08/20/2014 03:52 PM, Ivan Kharlamov wrote: >> On 08/20/2014 12:46 PM, Marc Tamlyn wrote: >>> I'd say ArrayField is a straight up data field at the moment. It stores >>> 0-1 lists of data. It's no di

Re: GSoC Meta refactor: Bikeshedding time!!

2014-08-20 Thread Ivan Kharlamov
On 08/20/2014 03:52 PM, Ivan Kharlamov wrote: > On 08/20/2014 12:46 PM, Marc Tamlyn wrote: >> I'd say ArrayField is a straight up data field at the moment. It stores >> 0-1 lists of data. It's no different to CommaSeparatedIntegerField >> (seriously, why does that ex

Re: GSoC Meta refactor: Bikeshedding time!!

2014-08-20 Thread Ivan Kharlamov
On 08/20/2014 12:46 PM, Marc Tamlyn wrote: > I'd say ArrayField is a straight up data field at the moment. It stores > 0-1 lists of data. It's no different to CommaSeparatedIntegerField > (seriously, why does that exists...) > > *If* PG gets the relevant update that will allow `integer[] reference

Re: GSoC Meta refactor: Bikeshedding time!!

2014-08-18 Thread Ivan Kharlamov
On 08/18/2014 02:03 PM, Anssi Kääriäinen wrote: > As for changing ForeignKey to virtual field plus concrete field > representation - I just realized this will be backwards incompatible no > matter what we do regarding categorization. An all-fields including > get_fields() call will return separate

Re: Unexpected behavior in admin views for _popup=1

2014-06-26 Thread Ivan Kharlamov
On 06/26/2014 06:00 PM, e.generalov wrote: > Hello! > > In my AngularJs application I want to reuse some django admin forms (to > "add", "edit" and "delete" orders) > but show them in the iframe instead of popup windows. > > In order to display "add" form in iframe I create a template: > >

Re: Add a generic "getter" filter to the built-in library

2013-11-04 Thread Ivan Kharlamov
On 11/04/2013 04:24 AM, Russell Keith-Magee wrote: > > On Sun, Nov 3, 2013 at 9:57 PM, Emanuele Bertoldi > mailto:emanuele.berto...@gmail.com>> wrote: > > I've opened a ticket (#21370) with a proposal for the *inclusion of > a generic "getter" filter* in the built-in library. > > *Wh

Re: ImportError: cannot import name actions

2013-10-16 Thread Ivan Kharlamov
Hi! On 10/15/2013 04:56 PM, rok wrote: > I have recently been testing the 1.6b4 tag with a new app we are > writing, using apache and wsgi. However, I could not get rid of the > following issue happening on every request: > > ... > [Tue Oct 15 12:50:36 2013] [error] [client 127.0.0.1] File > "/

Re: Django 1.6 and migrating to the new test runner: note on user experience

2013-10-01 Thread Ivan Kharlamov
Hi, Carl, On 09/27/2013 09:01 PM, Carl Meyer wrote: > Hi Ivan, > > On 09/27/2013 03:07 AM, Ivan Kharlamov wrote: >> Maybe I'm a careless kind of guy, but when I test out new versions of >> Django, reading all of the release notes is rarely the first thing that >

Django 1.6 and migrating to the new test runner: note on user experience

2013-09-27 Thread Ivan Kharlamov
Hi! Maybe I'm a careless kind of guy, but when I test out new versions of Django, reading all of the release notes is rarely the first thing that I do... my bad. :) My first action is usually firing up the test suites and looking at the number of failed tests and deprecation warnings. As we all k

Re: Revisiting multiline tags

2012-02-24 Thread Ivan Kharlamov
On 02/24/2012 01:29 PM, Chris Northwood wrote: > A +1 from me too, I've really felt the pain on this when doing i18n > templates, I understand the aesthetics, but the aesthetics of > obscenely long tags is also bad imo... > > On 24 February 2012 09:23, Shawn Milochik wrote: >> On Fri, Feb 24, 201

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Ivan Kharlamov
On 01/29/2012 09:39 PM, Etienne Robillard wrote: > On 01/29/2012 12:31 PM, Ivan Kharlamov wrote: >> On 01/29/2012 09:16 PM, Etienne Robillard wrote: >>> >>> >>>>> For other options checkout this >>>>> guide:http://stackoverflow.com/a/7934

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Ivan Kharlamov
On 01/29/2012 09:16 PM, Etienne Robillard wrote: > > >>> For other options checkout this >>> guide:http://stackoverflow.com/a/7934577/497056 >>> >>> Best regards, >>> Ivan Kharlamov > > Probably a really mediocre reference assuming its o

Re: End-user defined fields, how would you approach it?

2012-01-29 Thread Ivan Kharlamov
t; > The model that requires custom fields is for example Person. They > might want a custom field to store address, blood type, or any other > thing. > > MANY THANKS in advance! Have a nice sunday! > Bernardo Pires > Bernardo, Hello. For other options checkout this guid

get_field_display: Django needs a template filter to allow get_field_display for a dynamic field name

2011-09-26 Thread Ivan Kharlamov
return getattr(value, arg)() else: return getattr(value, arg) else: try: return value[arg] except KeyError: return settings.TEMPLATE_STRING_IF_INVALID Here's the corresponding ticket: https://code.djangoproject.com/ticket/1603