Tag Archives: django

Database structure migration without code versioning

This is not intended to be a rant or even close to it. But I find myself with a problem so obvious that I’m annoyed by the lack of solution. I can’t be the only developer with this problem. I … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

The status of Django 1.1

On May 7 Jacob Kaplan-Moss wrote a blog post on djangoproject.com about the status of Django 1.1. One of the things you really like as a web developer using Django is: We’ll ship Django 1.1 when it’s stable, and not … Continue reading

Posted in django | Tagged | Leave a comment

A generic copy/clone action for django 1.1

The last couple of days I’ve been working on customizing the django 1.1 administration to handle a number of specific permission and functionality wise things. Tonight I wrote a little function that should make your life much easier in the … Continue reading

Posted in admin, django | Tagged , , | 5 Comments

Danger with django ModelForms and related names

There is a danger in extending your ModelForms with fields if you don’t take care of your naming. Take for example these models. The forms represents a simple batch emailing module. #!/usr/bin/python/ class EmailBatch(models.Model): body = models.TextField() subject = models.CharField(max_length=400) … Continue reading

Posted in django | Tagged | 3 Comments

Howto get custom GET variables into djangos admin list pages

Yesterday I ranted a bit about how to insert extra GET parameters in the django change list page without having the admin blow up when it was not able to recognise them as filters. I’m using this for building a … Continue reading

Posted in django, python | Tagged , | Leave a comment