On 8 dec 2005, at 06.41, Tom Tobin wrote:
On 12/8/05, Daniel Ericsson <[EMAIL PROTECTED]> wrote:
There seem to be a fix in the new-admin branch -> http://
code.djangoproject.com/changeset/1244
Or, in other words, the current trunk, since new-admin got merged a
little while back. :-)
Your
Thank you Kieran and Rob for your reply. The reason why I want to know
id of the record is that I would like to name a picture by the id
number( for example the picture will be 4330.jpg if the record id is
4330) And then the picture is linked with the record data.I would like
to have an image(
On 12/8/05, Brett Hoerner <[EMAIL PROTECTED]> wrote:
>
> Well, I'm using the latest svn checkout, at least as of last night, as
> I noted in my first problem post. So, the error with TimeField and
> auto_add* is still there for me.
I guess I got thrown off by Daniel's suggestion; sorry to hear t
Well, I'm using the latest svn checkout, at least as of last night, as
I noted in my first problem post. So, the error with TimeField and
auto_add* is still there for me.
On 12/8/05, Daniel Ericsson <[EMAIL PROTECTED]> wrote:
> There seem to be a fix in the new-admin branch -> http://
> code.djangoproject.com/changeset/1244
Or, in other words, the current trunk, since new-admin got merged a
little while back. :-)
In general, if you're having a problem and you're
On 8 dec 2005, at 06.16, Daniel Ericsson wrote:
On 8 dec 2005, at 04.18, Brett Hoerner wrote:
luminosity in IRC asked if I tried it without
"auto_now_add=True" ... I
tried, and it worked.
So what am I doing wrong with "auto_now_add" here?
I'm not sure you are doing anything wrong. When y
Thanks, so... should this be changed in the Django-svn, or is this some
special functionality I should really need/depend on?
Also, I still think that users should be able to over-ride the values
with auto_add[_now] on ... if they post data that should 'take', if the
field is blank it should do t
On 8 dec 2005, at 04.18, Brett Hoerner wrote:
luminosity in IRC asked if I tried it without
"auto_now_add=True" ... I
tried, and it worked.
So what am I doing wrong with "auto_now_add" here?
I'm not sure you are doing anything wrong. When you set auto_now or
auto_now_add on the TimeField
Ah, well... I've realized by messing around that "auto_now_add" assumes
you aren't even going to display it. I was assuming that it would
auto_add if you left it blank ... woops yet again. I think that would
be nice though, or at least clear that up in the Docs, unless I missed
something. :P
luminosity in IRC asked if I tried it without "auto_now_add=True" ... I
tried, and it worked.
So what am I doing wrong with "auto_now_add" here?
By the way, someone noted that I was using "time" and "date" - both
reserved words. Woops. Well, I changed them to "time_posted",
"date_posted", etc, and I still get the same error.
KeyError at /admin/blog/posts/add/
"Could not find Formfield or InlineObjectCollection named 'time_posted'"
On Wednesday 07 Dec 2005 11:19 pm, Jacob Kaplan-Moss wrote:
> http://www.jacobian.org/2005/dec/07/job/;
you have debug=True on this site - a real pleasure to see the cool
error message in the real world, much better than a 404 message ;-)
--
regards
kg
http://www.livejournal.com/users/lawgon
(latest svn checkout)
I can't seem to get a meta.TimeField to work properly (using the admin
panel for now). DateField works fine, and DateTimeField works only if
I let auto_now_add do the work (in other words, if auto_now_add is True
and I don't set the Date/Time manually)
Anyways, for now...
Hi Eric, I did a dig around and found emails from you on the Zope lists
(on my machine) going back to July 2001 - but I know you've been around
longer than that ;)
Yup, it's the primary_key field option I'm using - that seems to work
fine, my only problem now is that PostGres is rather less forgi
Very clear Jacob! - a very clean example, thanks for that.
The second 'Story' model would need a user-created primary key I guess,
something the first model doesn't need.
I've had a dig around the legacy database documentation as well, which
was quite handy.
Now all I need to do is figure out a
I did a similar thing not long ago. I used '/places/edit/%s/' %
new_place.id (the difference being %s vs %i), but I don't think that
matters.
Also (and I'm not sure how much this matters), rjwittams suggested in a
recent change that the do_html2python() call should occur before the
"if errors:" t
Could you explain why you want the id of the record at that point? The
record doesn't actually exist at that point, so it doesn't have an id.
The id is generated when manipulator.save is called. At that point you
have a copy of the object so you can just do new_place.id to get the
id.
Kieran
Hey folks --
Want to get paid to write Django apps? You know you do...
Well, we're hiring a Django developer, and I obviously want to hire
someone out of the community if at all possible. Full details are at
http://www.jacobian.org/2005/dec/07/job/; drop me an email if you're
interested
Hi,
Is it possible to find out the ID of the record being inserted?
To explain what I mean:
Let's suppose the example at
http://www.djangoproject.com/documentation/forms/
def create_place(request):
manipulator = places.AddManipulator()
if request.POST:
Hello,
I'm quite perfectionist and I do have a deadline for my project !
But authentication is a little bit hard and not so well documented.
Here is my view (see comments please):
class UserRegManipulator(formfields.Manipulator):
def __init__(self):
self.fields = (
form
I follow the tutorial number 2, everything is working except the
auto-loading, I cannot refresh the browser to see change, I have to
stop and start server to see change.
I use built-in web server on windows XP SP2
It appears that I can no longer include the id field in the fields parameter
of meta.Admin.
I am on the road and can not actually get more info on the exception, but I
wanted to see if this was by design and if there is a way to show this for a
particular object other than in the breadcrumbs
OK, I've found the code, and it looks as if set_FOOs() does intelligent
things about only updating the *changes* to the list of object IDs.
I'll use that for now.
Add and Delete methods would be nice though, as would something that
takes objects instead of IDs. Seems more Djangoesque. (Is that
Oh, and I'm using the latest svn trunk.
Sorry - I'm probably doing something silly here...
I have a 'Meeting' object which has a list of required attendees and a
list of optional attendees. The admin interface works fine, but I'm
stuck when it comes to manipulating these relationships in my own code.
The attendees are Users. So I h
25 matches
Mail list logo