Re: Post-save hook after inline records saved?

2011-09-08 Thread Vinicius Massuchetto
7;, then hit > 'save'.  The second time I save, the order rows exist) > > Can anyone suggest a strategy whereby, when an Order gets saved, I can > hook into some event AFTER the related Lines have been saved? Hi Andy. Did you find a workaround for this? Or can anyone suggest so

Re: Admin model listing custom ordering

2011-08-09 Thread Vinicius Massuchetto
ike this: >        lookup_opts, params = self.lookup_opts, self.params > there might be some additional ordering that can be accomplished with > those variables. > > good luck, let me know if you figure it out > > On Jul 28, 6:07 am, Vinicius Massuchetto > wrote: >>

Admin model listing custom ordering

2011-07-28 Thread Vinicius Massuchetto
ield__in = fk_list).extra( select = {'ordering': ordering}, order_by = ('ordering',) ) return qs What can be preventing this from behave as desired? Do I need to override anything else? Thanks in advance. -- Vinicius Ma

Different urlpatterns for different subdomains

2011-06-30 Thread Vinicius Massuchetto
. Thanks. -- Vinicius Massuchetto http://vinicius.soylocoporti.org.br -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email

Re: Autocomplete on Inlines ForeignKey

2011-05-24 Thread Vinicius Massuchetto
2011/5/24 Karen Tracey : > On Tue, May 24, 2011 at 6:51 AM, Vinicius Massuchetto > wrote: >> >> Have anyone been able to implement an autocomplete input field in an >> inline formset? If so, please provide some references. >> >> The main apps that do this in

Autocomplete on Inlines ForeignKey

2011-05-24 Thread Vinicius Massuchetto
Have anyone been able to implement an autocomplete input field in an inline formset? If so, please provide some references. The main apps that do this in a normal form can't render the same behavior in an inline. Many thanks. -- Vinicius Massuchetto http://vinicius.soylocoporti.org.br --

Re: Readonly on subset of forms in Admin inlines

2011-05-12 Thread Vinicius Massuchetto
Hi! Did you find any solution for this? I'm trying to achieve a similar behavior for inlines, as posted in another recent thread. Thanks. -- Vinicius Massuchetto On Jan 23, 8:07 am, Peter Phillips wrote: > Thanks for the reply! > > I probably didn't explain the problem pr

Readonly fields for existing items on admin inlines

2011-05-11 Thread Vinicius Massuchetto
`user` field as readonly. In the last line, If I change the widget attribute to ['disabled'] = True, it works fine, but I need a text entry, not a disabled form field. I'm also aware that I'll need to override the `save_model()` and `save_formsets()` for this to work prop

Re: Generating fieldsets

2011-03-17 Thread Vinicius Massuchetto
2011/3/17 Vinicius Massuchetto : > Is it possible to generate different fieldsets for admin forms? I > would like to retrieve different fieldsets for different users. I managed doing this according to this procedure: http://stackoverflow.com/questions/687829/django-overriding-get-f

Generating fieldsets

2011-03-17 Thread Vinicius Massuchetto
Is it possible to generate different fieldsets for admin forms? I would like to retrieve different fieldsets for different users. Thanks -- Vinicius Massuchetto -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group,

Re: Format DateTimeField of a model

2011-03-16 Thread Vinicius Massuchetto
2011/3/16 Daniel Roseman : > On Wednesday, March 16, 2011 5:37:23 PM UTC, Vinicius Massuchetto wrote: >> >> I want to customize the DateTimeField returned in an admin list >> column. I know there's the DATETIME_FORMAT setting, but I only want to >> change in one

Format DateTimeField of a model

2011-03-16 Thread Vinicius Massuchetto
nguage. What's the right way of doing that? Please note that I want to preserve the sorting feature of this column. Many thanks. -- Vinicius Massuchetto -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em

Re: Convert a list to queryset and override the one in modelAdmin

2011-02-21 Thread Vinicius Massuchetto
2011/2/21 Vinicius Massuchetto : > 2011/2/21 Daniel Roseman : >> On Monday, February 21, 2011 5:47:42 PM UTC, Vinicius Massuchetto wrote: > >> You can't "convert" a list to queryset, as a queryset is - as the name >> implies - a database query. > > I im

Re: Convert a list to queryset and override the one in modelAdmin

2011-02-21 Thread Vinicius Massuchetto
2011/2/21 Daniel Roseman : > On Monday, February 21, 2011 5:47:42 PM UTC, Vinicius Massuchetto wrote: > You can't "convert" a list to queryset, as a queryset is - as the name > implies - a database query. I imagined that. =/ > What you could do is get all the IDs

Convert a list to queryset and override the one in modelAdmin

2011-02-21 Thread Vinicius Massuchetto
there, but it fails to a "database error" admin screen if I return the list. Is there something I can use to convert it? Thanks. -- Vinicius Massuchetto -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this gro

Re: Local flavor and admin (zip-code)

2010-12-31 Thread Vinicius Massuchetto
__ > max_length=None, min_length=None, *args, **kwargs) > TypeError: __init__() got multiple values for keyword argument 'max_length' > > Do I miss anything? Any other tips? I'm quite confused and stuck on this too. As you, I want to override a model field by a djan