Hi Steve,

Actually I only wanted to have them displayed in the Admin interface
somehow but in a way that the user can't modify them. A sort of meta
information to the entry.

I'm only getting my feet wet with Django, so I'm basically
experimenting. I'm sure there's a way of doing this elegantly.

Cheers,

Guillermo

On Sep 7, 2:07 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> Since the whole point of those options is to ensure that the datetime
> values are inserted automatically it would seem a little perverse to
> want to make manual entries in the fields to which you have applied them.
>
> regards
>  Steve
>
>
>
> Guillermo wrote:
>
> > I was using the "auto_now" and "auto_now_add" options. That seems to
> > be the cause and to my knowledge there's no way to override this.
>
> > Regards,
>
> > Guillermo
>
> > On Sep 6, 10:17 am, Guillermo <[EMAIL PROTECTED]> wrote:
> >> Hi!
>
> >> I have this model with two `DateTimeField`s that aren't showing up in
> >> the Admin page. According to the documentation, the default value for
> >> `editable` is "True". I can't figure out what I'm missing...
>
> >> (I'm using version 1.0.)
>
> >> Here's the relevant admin.py code:
>
> >> class PostAdmin(admin.ModelAdmin):
> >>     prepopulated_fields = {'slug': ('title',)}
> >> admin.site.register(Post, PostAdmin)
>
> --
> Steve Holden        +1 571 484 6266   +1 800 494 3119
> Holden Web LLC              http://www.holdenweb.com/
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to