I guess this is a noob question, but I hope this is the place to learn.

My mezzanine model looks like this (details removed):

class Customer(models.Model):
    user = models.OneToOneField("auth.User")

class Product(models.Model):
    unique_id = models.CharField(max_length=50, primary_key=True)
    owner = models.ForeignKey("Customer")

class Event(models.Model):
    product = models.ForeignKey("Product")
    eventtime  = models.DateTimeField("Date/time of event")

class CustomerPage(Page, RichText):
    customer = models.OneToOneField("Customer.user")
    eventtime  = models.DateTimeField("Date of birth")
    eventtype = models.CharField(max_length=50)

I want to show a specific page for the user, where all related info is 
shown, making up both details and lists.

On the customer-page, when a user is logged in, I was hoping to get an 
authenticated user-id, and the ability to iterate over the products for the 
customer (=user) and iterate one level deeper on the events for the product.

I have read through the authentication stuff for Django and Mezzanine, but 
its not clear to me.

How to approach this?

Thanks

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