Unless I am really mistaken, I am pretty sure this is a bug. The
"self.step" variable in "wizard.py" is never being updated after the
forms are submitted. These are two possible fixes I found:
1. In the method "def __call__(self, request, *args, **kwargs) :"
update the self.step variable after
Hi,
I am having a problem getting the form wizard to load a different
template for each form. I used the example provided where they name
their templates template_0.html, template_1.html ... and so then
override the function like this:
def get_template(self, step):
return 'vlis/product
Is it possible to use a parameter from the url with the extra_content
dictionary when using the generic direct_to_template? I know it
executes functions within the extra_content right before loading the
template, so I would think you should be able to access this someone.
Any help would be much a
Is it possible to set a property in my model that will set update
cascade/delete to true when the tables are generated? I know models
automatically do this anyways when you delete or update, but if I am
working directly with database information it doesn't work
consistently. I know it's possibl
n the other page.
>
> On Jul 9, 3:36 pm, tyman26 <[EMAIL PROTECTED]> wrote:
>
> > I'm using an activex control that loads data with xml via javascript.
> > I have no problem using django to build my xml file when I'm testing
> > examples with static informa
I'm using an activex control that loads data with xml via javascript.
I have no problem using django to build my xml file when I'm testing
examples with static information. The problem comes in when I want to
pass dynamic information to the xml generated view. For example, here
is a template cal
I am trying to build dynamic menus that are brought in from a
database. I set up the table in this structure:
CREATE TABLE auth_menu
(
menu_id serial NOT NULL,
group_id int4 NOT NULL,
parent_id int4,
auth_permission_id int4,
title varchar(35) NOT NULL,
url varchar(100),
order_index
I just fixed it, the symlink I created for the admin media directory
was incorrect. Thanks anyways!
On Jun 5, 10:58 am, "Justin Lilly" <[EMAIL PROTECTED]> wrote:
> based on user, user portion... did your database change at all? Is there two
> user columns?
>
>
I saw a previous post about this same thing a couple weeks ago, but
there was no response to it. Whenever I use the admin site and try to
access a user, I get this error message:
"TypeError at /admin/auth/user/3/"
"Cannot resolve keyword 'user' into field. Choices are: permissions,
user, user, i
When you are in the shell you might be accessing the models field and
when you are in the template you are accessing the form field. You
might just want to pass the url of the attachment in through the view.
On May 31, 4:01 pm, "John Goodleaf" <[EMAIL PROTECTED]> wrote:
> Awright. I just know I'
Ok, I just read into middleware a bit more and I see the possibilities
now. I'm going to attempt to write this and I'll post the results
once I'm done. This seems like something people might want at their
disposal. Thanks for the assistance.
ringemup wrote:
> On May 31
That makes a lot more sense to me now, thanks for the explanation!
The only thing that worries me is repetition. It seems like it would
get very repetitive implementing this inside every view in the entire
project. Is there somewhere else you can check everytime a request is
made?
On May 31, 1
ies shouldn't matter, since they contain
> no session data except the ID, which you're invalidating after a
> certain amount of time anyway.
>
> On May 31, 12:54 pm, tyman26 <[EMAIL PROTECTED]> wrote:
>
> > I also need to implement this type of feature. Did yo
I also need to implement this type of feature. Did you find anything
on this?
On May 2, 12:29 pm, [EMAIL PROTECTED] wrote:
> Hi all,
>
> I use django.contrib.sessions with SESSION_EXPIRE_AT_BROWSER_CLOSE=True.
>
> I need a way toexpireasessionon certain amount of time of inactivity in the
> bro
Sorry about that, I probably should of noticed. Thanks for the info!
On May 18, 12:01 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Fri, 2007-05-18 at 09:49 -0700, tyman26 wrote:
> > Hi,
> > I built an application with the development version of Django and
&
Hi,
I built an application with the development version of Django and
moved it to Apache. After I moved it, the self.clean_data variable
stopped loading for some reason. I know you have to validate the data
before this is availbable, but I am validating it. It works fine in
the development ve
>def add_edit_model(request, id=None):
> if id is not None:
>instance = MyModel.objects.get(id=id)
>InstanceForm = MyForm(instance=instance)
>else:
>InstanceForm = MyForm()
>if request.POST:
>form = InstanceForm(request.POST)
>if form.is_valid():
Should I just manually check every Charfield value after a POST and
set it's value to 'None' when I find an empty string? Not sure if
that's the best practise or not!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
I noticed that manipulators use do_html2python() to update blank
values to null so that single quotes don't get inserted into records.
Is there anything like that for newForms? I am trying to save a model
that I manually load information from my newForm data, but all the
blank fields get loaded l
I see what you are saying, but I was trying to do something a little
more complicated. I wasn't trying to validate any data, but rather
load choices into a select box based on information from the POST. I
have 2 select boxes in a form where one has info regarding all the
countries in the world.
Is it possible to access the POST information from within my forms.py
file after a page submission? I am confused on how to access this
information from within the constructor of if I can even do this.
--
forms.py
--
from django import newforms as forms
class CustomerAdd(
> txtfld_attrs_dict = { 'class': 'default_txt_field'}
> contact_first =
> forms.CharField(widget=forms.TextInput(attrs=txtfld_attrs_dict),max_length=25,label=u'Contact
> First')
I figured out the problem, you have to set the dictionary
representation within the widget parameter if you use a
I have a charField in a newForm with a max_length=25, but when I load
the form it gets set to 10 everytime. If I get rid of the widget,
then the max_length is set correctly at 25. Does anyone know why the
widget would automatically set the maxlength to a default value? Here
is my code:
txtfld
48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> On Mar 27, 5:10 pm, "tyman26" <[EMAIL PROTECTED]> wrote:
>
> > I guess a simpler quesiton would be: How can I populate a text box
> > dynamically withinformationfrom thepostfrom the same form? Or is
Is there anyway to populate a choicefield after a form submission.
Once a user changes a choice in one select box, I want the form to
submit and then populate a different select box based on what they
chose. I have a choicefield with a list of countries. Once the user
chooses a country I want all
I guess a simpler quesiton would be: How can I populate a text box
dynamically with information from the post from the same form? Or is
there maybe another way to accomplish this possibly with a custom
inclusion tag? Any help would be much appreciated. There must be
some easier way to do this.
I have a form with 2 select boxes that I load into a template.
Initially the "mailing country" choice is loaded with all available
countries and the "mailing states" is empty because a country hasn't
been selected yet. When a user selects a "mailing country" choice, I
want all the states from tha
I want to create some custom validation methods for some fields in a
model that I have. I use a form to display this model through a
view. Anyways, does this mean I can't use
"forms.models.form_for_model(Employee)"? Would I have to create this
form seperately from the model instead of appending
Where do I set the 'SESSION_EXPIRE_AT_BROWSER_CLOSE = True'? I added
this to the "settings" file and sync'd the database, but when I close
the browser the session still stays intact. Do I have to add this
when the session is created?
--~--~-~--~~~---~--~~
You re
29 matches
Mail list logo