Hello all,
I am having an issue with django models and the auto-generated admin
page:
I apologize if this has already been answered somewhere.
/reg/models.py:
'''
from django.db import models
class Space(models.Model):
name = models.CharField(max_length=100, )#unique=True)
def __unicode__(self):
return self.name
class Admin:
pass
class Workshop(models.Model):
name = models.CharField(max_length=100, )#unique=True)
def __unicode__(self):
return self.name
class Admin:
pass
class Event(models.Model):
space = models.ForeignKey(Space, edit_inline=models.TABULAR)
workshop = models.ForeignKey(Workshop, edit_inline=models.STACKED)
start = models.DateTimeField(core=True)
end = models.DateTimeField()
class Admin:
pass
'''
http://example.com/admin/reg/workshop/add/ works properly: I can add
workshops with their associated events.
However, when I attempt to add an event to a workshop that already
exists, for example at http://example.com/admin/reg/workshop/1/, by
selecting a space and filling in both the start and end date/time
forms:
"IntegrityError at /admin/reg/workshop/1/
datatype mismatch"
I can provide the entire error message if so desired.
thanks
-Alex
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---