Hello together, I am despairing!
I am trying a DB query within a model.

Example:
#model.py

from django.db import models
from mezzanine.pages.models import Page

class callToAction(models.Model):
    pageIdField = models.IntegerField(_(u"Page ID"),max_length=1000,null=True, 
blank=True, choices=Page.objects.all().values_list('id','title') ,default=None)



It raise the error Models aren't loaded yet

Maybe someone can try it out!

Trank you :-)

-- 
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