yaean design shanghai: blog > articles from July, 2009

skip to content

You are here: home > blog > 2009 > 07

In July, 2009 we wrote…

Wednesday, 8 July 2009

Django Related And Inherited Name Attribute Clash

Bare with me it's a long story...

When deleting an object I was getting this error from Django:

'RelatedManager' object has no attribute '_collect_sub_objects'

The reason was an attribute name clash on a base class. Finding the reason took some time so here's the low down in case any one else runs in to this.

In one app I had a model Company:

class Company(models.Model):
    name = models.CharField(max_length=1024)

and in another app I had a model AdClient:

class AdClient(models.Model):
    company = models.ForeignKey(Company, related_name='client')

Then some time later I wrote a new app inheriting from Company as:

class Client(Company): name =…

read more

Tags:

Wednesday, 8 July 2009

IE6 Go Home

Go home IE6

IE6 is the bane of web developers everywhere. Greatly illustrated as the drunk-loser-relative in the above image from John Martz. Flickr has a larger version. There is hope on the horizon: MS is installing IE8 by default via Windoze Update. So the worst should be behind us in browser land at least. Email clients are another story.

read more

Tuesday, 7 July 2009

How To Be Happy In Business

how to be happy in business

From Bud Caddell, "How to be Happy in Business" is a Venn Diagram showing how to get there from here. Learn to say no...

read more

Monday, 6 July 2009

Pavements For Pedestrians: Shanxi Fuxing

Shanxi Lu and Fuxing Lu

Why not park your large piece of industrial earth moving equipment right in front of the pedestrian crossing and for extra points block off the ramp so that anyone on wheels is inconvenienced. This scoop was parked here for several days. The driver was sleeping in the cab.

read more

Tags:

Friday, 3 July 2009

iPhone HP Calculators

iPhone HP Calcs

HP has released software emulators for their classic calcs on the iPhone. Go retro!

In other news: the iPhone is still not available in China (largest mobile market in the World).

read more

Tags:

Thursday, 2 July 2009

US Movie In China Money Making Shock

In a country in which every movie can be watched essentially for free it may seem making money from movies is impossible. It's not. As this report about Transformers opening weekend from the LA Times proves.

It was the No. 1 movie in all 58 countries where it opened, with particularly impressive ticket sales in Russia, Australia, South Korea and China, where it opened to $21.9 million, the biggest-ever debut for an English-language movie.

read more

Wednesday, 1 July 2009

Pavements For Pedestrians: Fuxing Jiashan

Pavements For Pedestrians: Corner of Fuxing Lu and Jia Shan Lu

Nope. No way through there.

I do a lot of walking around Shanghai. I want to walk on the pavement but frequently it's impossible because bikes/boxes/scaffolding/cars/tables/chairs...

read more

Tags: