admin properties and short_description

2012-01-12 Thread stereoit
Hi, is there a way how to pass a short_description to a property? I have: @property def extend_types(self): return cjson.decode(self.extend_types_data) #extend_types.short_description = 'Something better' with the code uncommented I get: AttributeError: 'property' object has no

LogEntry change messages do not do i18n properly

2010-04-10 Thread stereoit
Hi, today I've noticed that my LogEntry change messages output the name of the field and do not respect when it has verbose_name setup (which is translated). I've had a look at admin.options.construct_change_message(), the line responsible is: change_message.append(_('Changed %s.') %

AdminSplitDateTime ValidationError when using 2 or more forms in a wizard

2010-02-24 Thread stereoit
wizard, it correctly validate on the page where I am using the widget, then moves to next Form. However after the last page when I click submit, I get ValidationError exception. My broken code is at http://github.com/stereoit/django-datetime-wizard Snippets here: forms.py class FirstForm(forms.Form

validate_generic from PYCON 2007

2010-02-13 Thread stereoit
Hi, while reading http://toys.jacobian.org/presentations/2007/oscon/tutorial/#s67 I see this nice validate_generic(request, formclass), but I am curious how to select proper formclass from the URL request? At the moment I thing of maintaining dictionary of avaliable forms and its corresponding

Django Comments framework

2008-12-27 Thread stereoit
Hi, I tried to add comments app http://docs.djangoproject.com/en/dev/ref/contrib/comments/, now few things works but Preview sometimes acts as Submit when there are no errors and I have no idea how to override Posted screen to include link (or just redirect) to original page. The documentation

change dic text based on select box option

2007-10-02 Thread stereoit
Hello, I'm using 0.96 and now I have working form_for_model with custom callback function that creates select drop down box when form is rendered. Great, but I would like to have a under the select box with different text for each selected option (like a help text). How should I do that? thanks

Re: mod_python apache2 path problem

2007-07-30 Thread stereoit
Hi, thanks for quick reply. When I did as suggested I received: EnvironmentError: Could not import settings 'settings' (Is it on sys.path? Does it have syntax errors?): No module named settings < so I also changed the PythonPath to PythonPath "['/srv/code/syslog/'] + sys.path" now I

mod_python apache2 path problem

2007-07-30 Thread stereoit
Hi, I'm having problem with mod_python. EnvironmentError: Could not import settings 'syslog.settings' (Is it on sys.path? Does it have syntax errors?): No module named settings I've developed small app for viewing syslog messages and it runs fine with following commands: cd

Re: newforms and models unique=True validation

2007-07-19 Thread stereoit
') > > MyForm = forms.form_for_model(MyModel, form=MyBaseForm) > > ---- > Nathan Ostgard > > On Jul 18, 7:06 am, stereoit <[EMAIL PROTECTED]> wrote: > > > Hi, > > I have model with field that has attribute unique set to True. I know > > newform

newforms and models unique=True validation

2007-07-18 Thread stereoit
Hi, I have model with field that has attribute unique set to True. I know newforms are not able to handle such a validation as this is DB related. However I read at newforms doc page that it is possible to provide method called clean_() that can do custom validation. My problem is that method is

admin utilites in front end view

2007-03-30 Thread stereoit
Hi, I'm trying to provide end users with a view into DB (syslog viewer), well actually I'm trying to imitate Admin part. I have pagination working, but is there a way how to use the filter bar and search form from admin part (I love them) in fronted view? I've searched groups and posts seems to