Re: Admin interface using CharField as a primary key

2006-03-30 Thread Daniel Bimschas
Forgot: In the trunk the problem also exists. 2006/3/30, Daniel Bimschas <[EMAIL PROTECTED]>: > If have a model like this: > > class Article(meta.Model): > cite_key = meta.CharField(maxlength=255, primary_key=True) > ... > > where "c

Re: Admin interface using CharField as a primary key

2006-03-30 Thread Daniel Bimschas
trunk now. 2006/3/30, Andy Dustman <[EMAIL PROTECTED]>: > > On 3/30/06, Daniel Bimschas <[EMAIL PROTECTED]> wrote: > > > > Hi there! > > > > I'm currently trying to convert an old webapp written in PHP into a > > django-based app. The PHP-System use

Admin interface using CharField as a primary key

2006-03-30 Thread Daniel Bimschas
Hi there! I'm currently trying to convert an old webapp written in PHP into a django-based app. The PHP-System used VARCHAR-Fields as primary keys in the MySQL - DB. Now, if i convert the data for the new tables created by Django, I have the problem that the admin interface can't edit any

Re: Assigning default value for field in admin

2006-03-29 Thread Daniel Bimschas
Hey that looks great! Thanks a lot, it will do for my purposes! 2006/3/27, tonemcd <[EMAIL PROTECTED]>: > > This looks like it might help, > http://lukeplant.me.uk/blog.php?id=1107301634 although it's not exactly > what you're after... > > Cheers, > Tone > > > >

Re: Assigning default value for field in admin

2006-03-25 Thread Daniel Bimschas
Hmm, really seems to be a problem. Does anybody know if the _post_save()-method is called BEFORE or AFTER the data is written to the django_admin_log-table? You could solve this issue by querying the django_admin_log-table and receiving the newest entry for the newly created or updated

Assigning default value for field in admin

2006-03-24 Thread Daniel Bimschas
Hi there, i'm currently writing my first Django application. I must say that Django is really what i've been searchin for for years. Right now I have a problem concerning the usage of the admin interface. I have a model like this: from django.core import meta from