> On Fri, Oct 17, 2008 at 10:34 AM, mthorley <[EMAIL PROTECTED]> wrote:
>
> > Thanks Keith, that worked perfectly. Can you tell me the reason I have
> > to use the admin widgets and can't use regular form widgets as I might
> > with any other form?
>
> > On Oct 17,
line
> date = forms.DateTimeField(widget=widgets.AdminSplitDateTime)
>
> keith
>
> On Thu, Oct 16, 2008 at 6:23 PM, mthorley <[EMAIL PROTECTED]> wrote:
>
> > Hello, I'm building a custom admin site with a custom form and the
> > datetime widget shows up as a text inpu
Hello, I'm building a custom admin site with a custom form and the
datetime widget shows up as a text input. When I set the widget for
the date field to textarea I get a textarea, but when I set it to
datetime, I get I text input. I also tried not specifying any widget
and I still get just a text
tom widget.
Thanks again to all
--
matthew
On Oct 7, 11:16 am, mthorley <[EMAIL PROTECTED]> wrote:
> Thanks that helps quite a bit. I see now, it expects each item/element
> in 'v' to be two-element tuple.
>
> Does any one know if there was a change made to the format of the
Thanks that helps quite a bit. I see now, it expects each item/element
in 'v' to be two-element tuple.
Does any one know if there was a change made to the format of the
choices argument for forms in django 1.0?
--
matthew
On Oct 7, 10:37 am, Steve Holden <[EMAIL PROTECTED]> wrote:
>
I just upgraded to django 1.0 and started getting this error. I was
already using newforms and am quite surprised and dumbfounded by the
errror. Generally this error would be caused by a missing comma in a
tuple, but that appears to not be my case.
I added some print statements (to
Ahh Rajesh you are a wonderful person and a life saver. May thousands
of glorious blessings come to you this day!
Thanks
--
matthew
On Apr 10, 12:20 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> On Apr 10, 1:39 pm, mthorley <[EMAIL PROTECTED]> wrote:
>
> > Gree
Greetings, I've got a django installation with 259,535 auth_user
records, (not that many), but the admin is running REALLY slow.
The user index pulls up fast, but when I click a record to see it in
detail, it takes forever and ever! In fact, I haven't been able to get
an individual record to
Greetings, I used inspectdb to create my models and then tried editing
the generated models in order to define the ForeignKey relationships,
and I'm getting an error.
Here's what I have. Note: I commented out the original category field
and tried adding my own ForeignKey
class
Please some one explain to me why I can't do this, or what
__metaclass__ hack I have to pull to get it to work? I searched google
and the list and saw a lot of old (7/2006) pages and discussions about
this, but nothing current.
from django.db import models
from django.contrib.auth.models import
nks
--
mthorley
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EM
on and already worked out a few
(ugly) hacks.
I would like to know if any one else is working on something similar,
or any other thoughts you may have. I have seen the Merquery stuff, but
know little about it.
Thanks much
-mthorley
--~--~-~--~~~---~--~~
You received
Greetings, I'm having trouble using a Field that created in the Admin.
Here is the Field and the Form.
class BitsField(fields.Field):
def get_manipulator_field_objs(self):
return [CheckboxSelectMultipleBitsField]
def get_internal_type(self):
return "IntegerField"
class
Thanks limodou, that's just what I was looking for!
--
mthorley
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@google
This may be a really dumb one, but I'm stooped. I read about
request.COOKIES, and request.session.set_test_cookie() and
request.session, but as far as I can see, they are not what I want.
I want to save a named cookie, with a value, and specific domain and
path. Like PHP's setcookie(). I'm sure
manipulator? Is
there another way this is supposed to be done? I don't want to have to
do magic in my views to make this work.
Thanks much folks. I welcome any and all comments, especially if you no
a better, or 'right' way to do this.
--
mthorley
Thanks Guille, that looks like it will do what I want, but I just
realized I have another, different, problem.
--
mthorley
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" grou
I've run into a similar problem witha a custom field I am developing
that is, in-part, based off of CheckboxSelectMultipleField. Do you know
if there is any way to automate the call of prepare?
--
mthorley
--~--~-~--~~~---~--~~
You received this message because
Thanks for the tip Nate!
Does any one know what method receives the data from the form when it
is submitted? I tried models.Field.get_db_prep_save but that doesn't
seem to be working. I need to process the form data before it is passed
off to the database for saving.
--
mthorley
really helped me work out the thought
process. I'll try that template/model/management permisions enforcement
just as soon as I get this custom Field complete.
Also thanks to all the django devs, your excellent code, and comments
lended a great hand in solving this mystery.
--
mthorley
t somewhere that maps models to their sql
implementation and that my model doesn't exist in that dict, hence a
KeyError. But that's really just a guess. I'd love to hear from an
authority about where the sql structure of a model is defined.
Thanks again Chris, you're thoughts have real
t throw any errors when starting the server), however when I try
manage.py syncdb appname, the manager errors: KeyError: "MyBitField"
Does any one know where you include that code does the db creation
stuff?
Thanks again Chris.
--
mthorley
--~--~-~--~~~-
in the
source but got stuck. It would be nice too, if I can do this with add
modifying the orginal source.
Thanks much for anythoughts or help on these.
--
mthorley
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
23 matches
Mail list logo