Correct me if I am missing something. Relatively new to Mezzanine and to 
Django :)

I managed to add a custom field *header_image* to the BlogPost model using 
the EXTRA_MODEL_FIELDS approach.

Just have to add one note in case someone else finds this useful:

*If* the DB already exists and then the above extra field is injected,

The following command *does not pick it up*: 
python manage.py schemamigration theme --auto

I needed to delete the dev.db, clean-up the migration history and run the 
following command for the custom fields to be incorporated into the 
BlogPost model:
python manage.py createdb --noinput

(then ...
python manage.py schemamigration theme --initial
python manage.py migrate theme --fake ... )



On Tuesday, 11 October 2011 18:29:07 UTC+5:30, wesley wrote:
>
> Hi, 
>
> I'm a new mezzanine user (great framework !), I would like to create a 
> new class of BlogPost with some custom fields. 
> Can we just inherit from BlogPost class and create an admin class 
> (like Page in the documentation/tutorial) ? 
>
> If not what is the best way to accomplish that ? 
>
> Thanks for your help. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to