I should mention that I got this error when running syncdb:
Error: None couldn't be installed, because there were errors in your
model:
provisioning.email: At least one field in Email should have core=True,
because it's being edited inline by user.User.
Here's the appropriate models.py:
from django.db import models
from django.contrib.auth.models import User
class Email(models.Model):
emailoneto = models.TextField()
emailonesubject = models.CharField(maxlength=255)
emailtwoto = models.TextField()
emailtwosubject = models.CharField(maxlength=255)
emailbody = models.TextField()
ticket_id = models.IntegerField()
created_date = models.DateTimeField(auto_now_add=True)
sent_date = models.DateTimeField(blank=True, null=True)
owner = models.ForeignKey(User)
def __str__(self):
return self.emailsubject
class Meta:
ordering = ['-sent_date', 'emailonesubject']
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---