On Nov 28, 5:33 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
(snip)
> There's a bit more work required than just implementing those few
> missing methods. Just leave it for a little while longer. Jacob is
> working on it and knows what remains to be done and has the bulk of the
> work
> (now strongly in "thread should be on django-devel" territory)
>
> I changed validate_full() to this:
>if not self.blank and (field_data is None or field_data == ''):
> return [_('This field is required.')]
>
> and IntegerField was now properly validated. However
On Wed, 2007-11-28 at 12:44 -0800, wiswaud wrote:
> Hi!
>
> On Nov 28, 3:22 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> > On 11/28/07, wiswaud <[EMAIL PROTECTED]> wrote:
> >
> > > So i just create a new object, like f=Foo(), and fill in the fields
> > > based on which ones were present in
> -Original Message-
> From: wiswaud [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 28, 2007 08:44 PM
> To: 'Django users'
> Subject: Re: Model.validate() bug???
>
>
> Hi!
>
> On Nov 28, 3:22 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> > On 11/28/07, wiswaud <[EMAIL
Doug, thanks again. Made things clear.
Meanwhile I'm trying to get it working.
As far as I understand is that I call 'student_list' from my urls.py.
In my html I loop through 'forms' and use 'teacher' as master.
The problem I face now is that StudentForm is not defined. How should
I get here?
Hi!
On Nov 28, 3:22 pm, "James Bennett" <[EMAIL PROTECTED]> wrote:
> On 11/28/07, wiswaud <[EMAIL PROTECTED]> wrote:
>
> > So i just create a new object, like f=Foo(), and fill in the fields
> > based on which ones were present in the input data.
>
> > Then i call f.validate().
>
> Model
On Wed, 2007-11-28 at 12:33 -0800, Doug B wrote:
> Is there a way to make custom model field that works normally except
> for database interaction where it is ignored. In looking at the
> source it doesn't seem possible but I thought it couldn't hurt to ask.
No. You're going to really have to
Is there a way to make custom model field that works normally except
for database interaction where it is ignored. In looking at the
source it doesn't seem possible but I thought it couldn't hurt to ask.
I have a serialized model field, based on a text field. I usually use
it to store random
Thanks for all the valuable feedback guys, I went ahead and got Django
Evolution up and running and I'll see what I think.
This has been one thing that has really pained me in the switch from
Rails to Django. Though I totally understand, since Rails doesn't
enforce foreign key constraints in the
On 11/28/07, wiswaud <[EMAIL PROTECTED]> wrote:
> So i just create a new object, like f=Foo(), and fill in the fields
> based on which ones were present in the input data.
>
> Then i call f.validate().
Model validation is a work in progress, and is nowhere near being
usable (something that a
Hi!
So i'm trying to validate the creation of a new object from input
data, but not going through forms, as this is a json webservice. For
various reasons, by the time the "constructor" code is reached, the
data is already deserialized, and to use django forms (and hence its
validation mecanism),
The save() method on a form doesn't actually exist in every case. If
you use the helper functions like form_for_model and
form_for_instance, they will magically create it for you. The form
builders make sure there is enough info in the form (hidden or
otherwise) to tie it to a model instance.
I store my templates outside the project dir, but `make-messages` only
looks inside from the dir I execute it.
I tried symlinking (ln -s) the templates dir in the project dir, but
it doesn't "follow".
Any ideas?
--~--~-~--~~~---~--~~
You received this message
Thanks for the example. I'm so new I cannot understand every line of
code, but I'll try it as an analogy on my own situation.
I'm a bit worried about the "form.save". It looks familiar from the
documentation. To me it seemed magic: A transparent way to me to save
all changes in the form, but
On Nov 28, 10:40 am, "Marty Alchin" <[EMAIL PROTECTED]> wrote:
> On Nov 28, 2007 10:12 AM, Ryan K <[EMAIL PROTECTED]> wrote:
>
> > I have a basic registration form for my site that has fields for a
> > postal code, state and a country. Since our site caters to
> > international users, I only want
On Nov 28, 2007 9:14 AM, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote:
>
>
> On Tue, 2007-11-27 at 16:47 -0800, eberg wrote:
> > To continue this monolouge I worked around the problem by omitting the
> > Context object and render the page with locals() instead.
> > This called for unsetting all
On Nov 28, 2007 10:12 AM, Ryan K <[EMAIL PROTECTED]> wrote:
> I have a basic registration form for my site that has fields for a
> postal code, state and a country. Since our site caters to
> international users, I only want to require a state and postal code
> only if the country is the United
On Wed, 2007-11-28 at 07:12 -0800, Ryan K wrote:
> I have a basic registration form for my site that has fields for a
> postal code, state and a country. Since our site caters to
> international users, I only want to require a state and postal code
> only if the country is the United States. I
Thanks Jarek. I appreciate sharing your thoughts on this matter.
VK
On Nov 28, 2007 3:49 AM, Jarek Zgoda <[EMAIL PROTECTED]> wrote:
>
> [EMAIL PROTECTED] napisał(a):
>
> > It would be very helpful to know if the Django Dev. team has any plans
> > to include support for
> > Pylucene/
On Tue, 2007-11-27 at 16:47 -0800, eberg wrote:
> To continue this monolouge I worked around the problem by omitting the
> Context object and render the page with locals() instead.
> This called for unsetting all "private" variables in the view.
>
> It would however be interesting to figure out
I have a basic registration form for my site that has fields for a
postal code, state and a country. Since our site caters to
international users, I only want to require a state and postal code
only if the country is the United States. I have a clean_country
method in my form that raises a
I am trying to design a form using the django admin with text fields
to make notes in and a drop down box with email addresses to choose.
I would like to add an action button, that sends an email with the
information in the forms to one of the addresses in the drop down
box. I was wondering the
**EARN $1 PER MONTH**CHECK PROOF**
**BPM SOFTWARE**
**INTERNET SOFTWARE**
**SOFTWARE DEVELOPMENT**
**PROCESS MODELLING SOFTWARE**
http://regantame.blogspot.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
On Nov 28, 2007 7:44 AM, PlanarPlatypus <[EMAIL PROTECTED]> wrote:
>
> On Nov 28, 2:10 am, Thejaswi Puthraya <[EMAIL PROTECTED]>
> wrote:
> > On Nov 27, 8:32 pm, PlanarPlatypus <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Does anyone know of a clean way to do partial validation in djangos
> > >
On Nov 28, 2:10 am, Thejaswi Puthraya <[EMAIL PROTECTED]>
wrote:
> On Nov 27, 8:32 pm, PlanarPlatypus <[EMAIL PROTECTED]>
> wrote:
>
> > Does anyone know of a clean way to do partial validation in djangos
> > newforms. I am basically after a cleaner way to do something like the
> > code below.
>
thx for your answer,
so, I have found a translation of goFlow in english, may be it could
be more understandable to you ?
http://code.djangoproject.com/wiki/GoFlow
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
> I need to get all blogs that belong to certain user and are empty (do
> not have any articles). I can't figure out how to make it with without
> extra() method.
Here's a solution that should give you a list (not a QuerySet) of all
the blogs. Don't know if this is best practice though. You can
[EMAIL PROTECTED] napisał(a):
> It would be very helpful to know if the Django Dev. team has any plans
> to include support for
> Pylucene/ Django.contrib.search feature in the near future?
PyLucene poses very specific problems. Basically, there are 2 flavors,
GCJ-based PyLucene and newer
28 matches
Mail list logo