Re: disabled or readonly field 's problem

2012-05-12 Thread Min Hong Tan
hi, thanks. def clean_pt_type(self): data = self.initial['pt_type'] and solve the problem. On Fri, May 11, 2012 at 10:56 PM, azizmb.in wrote: > Hey! > > You could clean the protected fields from the model data by overriding > "clean" methods of the form. The documentation is > here

Re: disabled or readonly field 's problem

2012-05-11 Thread azizmb.in
Hey! You could clean the protected fields from the model data by overriding "clean" methods of the form. The documentation is here . On Sat, May 12, 2012 at 8:56 AM, Min Hong Tan wrote: > hi, > > i

disabled or readonly field 's problem

2012-05-11 Thread Min Hong Tan
hi, i have a problem on the formmodel. basically, to set the field read only and disabled is easy. but, the problem which I facing now, is a bit complicated. - if set field "read-only" field. We can actually modify the record by using web developer tools by press "F12" to modify the record and

Re: readonly field ordering issue

2011-04-20 Thread Shawn Milochik
On Wed, Apr 20, 2011 at 11:13 AM, Bobby Roberts wrote: > thanks!  That is exactly what i used.  would be great if the docs > actually said that would solve the issue. > You're allowed to open a ticket and submit a patch. ;o) -- You received this message because you are subscribed to the Google

Re: readonly field ordering issue

2011-04-20 Thread Bobby Roberts
thanks! That is exactly what i used. would be great if the docs actually said that would solve the issue. On Apr 20, 10:52 am, Shawn Milochik wrote: > I think you can just specify a 'fields' attribute in your admin model > to fix this. It should retain the order in which they're entered. > >

Re: readonly field ordering issue

2011-04-20 Thread Shawn Milochik
I think you can just specify a 'fields' attribute in your admin model to fix this. It should retain the order in which they're entered. http://docs.djangoproject.com/en/1.3/ref/contrib/admin/#django.contrib.admin.ModelAdmin.fields -- You received this message because you are subscribed to the Go

readonly field ordering issue

2011-04-20 Thread Bobby Roberts
hi all... i have certain fields in my model such as this: field1 field2 field3 field4 field5 field6 field7 field8 field9 field10 I have the even fields set to readonly fields. The issue i'm having is that when I go into edit this record in admin, i see the odd numbered fields at the top (which y

Re: Readonly Field

2009-02-19 Thread Malcolm Tredinnick
On Thu, 2009-02-19 at 17:44 +0200, burcu hamamcıoğlu wrote: > > hi , I want to make to display a field disabled(readonly) on admin > form. Could you please help me how can i do this? There was a thread about exactly this topic within the last two days. It's worth doing a little bit of a search

Re: Readonly Field

2009-02-19 Thread Alex Gaynor
On Thu, Feb 19, 2009 at 10:44 AM, burcu hamamcıoğlu wrote: > hi , I want to make to display a field disabled(readonly) on admin form. > Could you please help me how can i do this? > > > > Here's an article I wrote on building a form field/widget to do this: http://lazypython.blogspot.com/2008/12/b

Readonly Field

2009-02-19 Thread burcu hamamcıoğlu
hi , I want to make to display a field disabled(readonly) on admin form. Could you please help me how can i do this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send em