django-softdelete project on github

Inspired by a post on override the default model manager to support soft-deleting objects in the database, I decided to implement it into one of my projects.  (Yes, I know it’s an old post but it was new to me!).

However, just being able to filter the query sets returned to exclude items which had deleted=true wasn’t enough for what I wanted to do.  Nor was just customizing the django’s admin interface to filter by on whether or not deleted was true or false.  I wanted the modified manager and objects to soft-delete all related objects (models that referenced the object-being-deleted via a ForeignKey).

Thus, the django-softdelete project was born.
Continue reading “django-softdelete project on github”

Content split going forward

For quite a while, this blog had posts on two unrelated topics — creative writing and programming. Sure, some could make the case that writing good code is an art form, like a form of poetry, blah blah blah.

In general, though, people that came to this site for programming information didn’t care about the writing posts and vice versa. So, I’ve decided to “streamline” things and split the content between two different blogs — each one to be focused more specifically on their given topic (i.e., writing or programming).

So, the programming stuff stays on this blog and the writing content goes over to an older blog (that has just had some life breathed back into it) over on blogspot.

django-apikey Version Bumped

I haven’t spent that much time on github until recently.  Poking around there led me to create my first project repository and put in up for anyone to use:  django-apikey.  (The original post/announcement can be read here:  “django-apikey — Key Based Authorization For RESTful Django Applications”)

It quickly got some feedback, all of which was very useful.  One commenter suggested making some unit tests for the code, which forced me to learn how to write test cases for Django.  Another person forked the code and made the stylistic changes to make it compliant with PEP 8.

Continue reading “django-apikey Version Bumped”

The Update

Some of you may have noticed that there hasn’t been a new post in a while. That’s due to the fact that I’m 2500 (or so) miles from home and haven’t had a chance to really sit down and work up anything that’s worth posting.
I have some programming stuff in the works, but that needs some dedicated time for error checking and such before I can post it. But there will be more posts, and soon (TM).