Lets see if someone has already dealt with this problem and can help me: I want to administer appointments in admin. I have two classes:
======================================= class Client(models.Model): name = models.CharField(maxlength=30) company = models.CharField(maxlength=50) class Appointment(models.Model): client = models.ForeignKey(Client,raw_id_admin=True) when = models.DateField(core=True) hour = models.TimeField(core=True) ======================================= There is a ManyToOne relationship: I can make many appointments with every client and each appointment belongs only to one client. The problem is I cannot make an appointment with a client the same date and same time I've planned another appointment before. So I've got 2 troubles: - When creating a new appointment showing only available dates/times for selection. (perhaps with AJAX when selecting a date showing only available times for that date? but... how?) - In the appointments list view showing available days for directly adding an appointment that day (something like a timetable?) Has anyone dealt with appointments in django admin? how? Thank you!!! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---