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
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.') %
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
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
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
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
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
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
')
>
> 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
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
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
11 matches
Mail list logo