Hello,

I'm currently creating a website in Django and I have a problem to
create my models. I have 2 classes :

- Event : which hold the information about an event (where it take
place, the number of places available, etc...)
- EventDate which is used to know when an event takes place (since an
event can occurs at multiple date).

For example, I've an event which is a "Django Reinhardt" concert and 2
event date which are "2006/07/10" and "2006/07/20".

My first try was to used :

class Event(models.Model):
    name = models.CharField()
    available_place = models.PositiveIntegerField()

class EventDate(models.Model):
    date = models.DateTimeField()
    misc = models.TextField()
    event = models.ForeignKey(Event)

But in this case, I will have the possibility to set the Event for the
EventDate in the Django Admin, and the things I would like to make is
to add, remove and edit EventDate from the Event edit panel.

How can I do to change that ?

Thanks


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to