Hi Stephen, hi Rick,
Thanks for this info... I'm a new Mezzanine and Django user - so please forgive me if I make some basic errors...
I've been able to replicate Rick's error, however, I get a failed call to lower() whereas Rick had upper(). This is the final error:
AttributeError: 'NoneType' object has no attribute 'lower'
Stephen, I've run through the steps you listed on a clean MySQL (5.1.61) db.
- create a new app with the startapp command - yes.
- add it to INSTALLED_APPS - yes.
- add the model code below to app.models - yes, removed all our old models, cleaned out the South migration folder and just used your Blah model extending Displayable.
- run migrations - yes, ends in the error.
from django.db import models
from mezzanine.core.models import Displayable
class Blah(Displayable):
name = models.CharField(max_length=200)
Does anyone have any experience of this error or any suggested work arounds? Rick were you able to find a solution for your instance?
Cheers,
James
On Tuesday, 7 February 2012 21:08:32 UTC, Stephen McDonald wrote:
I wasn't able to replicate this. The steps I took:
- create a new app with the startapp command
- add it to INSTALLED_APPS
- add the model code below to app.models
- run migrations
from django.db import models
from mezzanine.core.models import Displayable
class Blah(Displayable):
name = models.CharField(max_length=200)
This all worked fine. I did come across some non-critical issues that could be related but probably aren't:
Try the lastet with the above commits and see how you go.