Re: Custom Inline Formset Validation

2010-08-12 Thread kkerbel
To clarify, by "checked" I mean there is a booleanfield and I only want to let the user select 5 of those at a time across the inline formset. On Aug 12, 1:14 pm, kkerbel <kker...@gmail.com> wrote: > I'm trying to do some custom validation for an inlineformset.  I would >

Custom Inline Formset Validation

2010-08-12 Thread kkerbel
I'm trying to do some custom validation for an inlineformset. I would like to only allow 5 items checked across the forms in the inline formset. What's the best way to do this? I have tried defining a method (like a clean method for forms and formsets) but it doesn't appear to work. Maybe I'm

Re: Template Form Field Styles

2010-03-02 Thread kkerbel
endif %} >     {{ field }} >     > {% endfor %} > > CSS just looks like: > > .error label { ... } > .error input { ... } > > On Feb 24, 8:34 pm, kkerbel <kker...@gmail.com> wrote: > > > > > @jbergantine > > > I'm curious about this too

Re: Template Form Field Styles

2010-02-24 Thread kkerbel
@jbergantine I'm curious about this too...could you elaborate? On Feb 24, 5:44 pm, jbergantine wrote: > One option is to use the field.errors logic to decide whether to wrap > an error class around the input and then use descendent selectors to > target the input element

Re: POST from external site

2010-02-22 Thread kkerbel
Let me further clarify...when I post using django it works as expected, meaning I have another view that which processes a new form I submit from django. I wrote a standalone html form on my desktop and tried submitting to the view and it still does not work. On Feb 22, 11:17 am, kkerbel <k

POST from external site

2010-02-22 Thread kkerbel
I'm attempting to write a listener page which will take POST variables sent from an external payment site to verify whether payment was successful or not. Here is the view: def results(request): if request.method == 'POST': test = request.POST.get('pmt_status')

Re: formset media

2010-02-17 Thread kkerbel
Anybody? :) On Feb 17, 1:19 am, kkerbel <kker...@gmail.com> wrote: > I'm having trouble getting AdminDateWidget to show in a formset.  Is > this possible?  I've read and followed every post that mentions how to > do this and I even have a page working with the AdminDateWidget, >

formset media

2010-02-16 Thread kkerbel
I'm having trouble getting AdminDateWidget to show in a formset. Is this possible? I've read and followed every post that mentions how to do this and I even have a page working with the AdminDateWidget, however, it uses a regular form and not a formset. I'm just having trouble getting it to

adding multiple associations within a form

2010-01-12 Thread kkerbel
In theory, given a form exists which allows the user to choose from a drop down list of editorial boards that they could potentially be a part of...and given a list of positions within an editorial board (i.e. editor in chief, guest editor, co editor, etc)...what would be the most efficient way to

Re: Viewing details on a record in admin pages gives DoesNotExist error

2010-01-11 Thread kkerbel
That was it! Thank you very much for your time and effort! On Jan 11, 5:36 pm, Karen Tracey <kmtra...@gmail.com> wrote: > On Mon, Jan 11, 2010 at 4:54 PM, kkerbel <kker...@gmail.com> wrote: > > [snip] > >  File "/usr/local/lib64/python2.5/site-packages/django/

Re: Viewing details on a record in admin pages gives DoesNotExist error

2010-01-11 Thread kkerbel
admin.py === from django.contrib import admin from . import models class PerDiemInline(admin.StackedInline): model = models.PerDiem class AccountInline(admin.StackedInline): model = models.Account class RequestAdmin(admin.ModelAdmin): list_display = ('requested_by',

Re: Viewing details on a record in admin pages gives DoesNotExist error

2010-01-11 Thread kkerbel
Ok...I'm sorry. The change list page is what I'm referring to...I'll try to gather some info and post it. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from

Viewing details on a record in admin pages gives DoesNotExist error

2010-01-11 Thread kkerbel
When viewing the admin pages for a travel request app we wrote, the admin page shows the record links, however, when you click to view the details of any record, I get an error stating "DoesNotExist: Employee matching query does not exist." I've looked at the database and the employee does indeed

Re: admin actions bar in django 1.1

2009-10-22 Thread kkerbel
fixed it...it was a template issue. On Oct 22, 9:10 am, kkerbel <kker...@gmail.com> wrote: > I think I found the problem...I have some files missing in my media > folder...namely 'actions.js'...I'm assuming adding this back will fix > my problem...if I could just figure out how

Re: base.css not being included

2009-10-22 Thread kkerbel
Nevermind...i fixed it. The previous programmer had copied the templates into the project. On Oct 22, 3:59 pm, kkerbel <kker...@gmail.com> wrote: > Hello all... > > I upgraded from django 1.0 to 1.1.1 and when I copied the new admin > media folder into my apache media r

base.css not being included

2009-10-22 Thread kkerbel
Hello all... I upgraded from django 1.0 to 1.1.1 and when I copied the new admin media folder into my apache media root...the only css that loads when I visit the main admin page is dashboard.css which basically just gives me text. It appears that base.css needs to be loaded as well since

Re: admin actions bar in django 1.1

2009-10-22 Thread kkerbel
I think I found the problem...I have some files missing in my media folder...namely 'actions.js'...I'm assuming adding this back will fix my problem...if I could just figure out how to get my site to read the media directory to begin with. ha. On Oct 21, 4:53 pm, kkerbel <kker...@gmail.

Re: admin actions bar in django 1.1

2009-10-21 Thread kkerbel
it doesn't appear to be working for any apps. everything else on the admin page shows fine to my knowledge...just not the admin actions bar. On Oct 21, 4:47 pm, kkerbel <kker...@gmail.com> wrote: > within the templates folder for my app (events in this case)...I just > have a

Re: admin actions bar in django 1.1

2009-10-21 Thread kkerbel
tes/admin/ folder of > the app that isn't working? > > On 21 Oct, 17:22, kkerbel <kker...@gmail.com> wrote: > > > > > i upgraded django 1.0.2 to 1.1 stable and I cannot see the admin > > actions bar in one of my apps...or any of them for that matter.  My > >

admin actions bar in django 1.1

2009-10-21 Thread kkerbel
i upgraded django 1.0.2 to 1.1 stable and I cannot see the admin actions bar in one of my apps...or any of them for that matter. My fresh install of 1.1 has the bar, however, I can't seem to find the discrepancy between the two installs. Have any of you experienced this? Thanks!