Hello django-users,

after searching google and this group and not finding any helpful
answers I hope you can help me.
I am making an event-app which allows me to manage my own events I
organize for me and my friends.

I add my friends to the database. Then I create an event and choose
which friends I want to invite. The app sends mails to these friends
with a url to the event. They can decide by their own if they want to
join.

There are a model for events and for attendees. In addition I made an
intermediary table by myself:

Code:
---------------------------------------------------------------------------------------------
class EventAttendeeList(models.Model):
  event_id = models.ForeignKey(Event)
  attendee_id = models.ForeignKey(Attendee)
  is_enrolled = models.BooleanField(default=False, editable=False)

  class Meta:
    db_table = 'events_attendee_list'
---------------------------------------------------------------------------------------------

If a friend of mine decides to attend he checks his own name in a list
of possible attendees (yes I trust my dudes). So I dont really need to
edit the "is_enrolled" field in admin.

The default m2m widget with the multiple-select field was perfect :
( But now its gone and I have to use this inline stuff:

Code:
---------------------------------------------------------------------------------------------
class AttendeeListInline(admin.TabularInline):
  model = EventAttendeeList

class EventAdmin(admin.ModelAdmin):
  inlines = [AttendeeListInline,]

admin.site.register(Event, EventAdmin)
---------------------------------------------------------------------------------------------

I only want the default widget back :(
Does anyone know how to achieve that without much work? I want to keep
things simple.

Thank you so far
Jens from Germany

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to