Re: ManyToMany relationship with through_fields and Admin

2018-08-28 Thread akash kandpal
What changes you did ? Regards, Akash Kandpal. On Wed, Aug 29, 2018, 12:34 AM Vincent wrote: > I figured it out : > > from django.db import models > from django.contrib.auth.models import User > > > # Create your models here. > class Events(models.Model): > Name =

Re: ManyToMany relationship with through_fields and Admin

2018-08-28 Thread Vincent
I figured it out : from django.db import models from django.contrib.auth.models import User # Create your models here. class Events(models.Model): Name = models.CharField(max_length=64) Date = models.DateTimeField() Description = models.CharField(max_length=200) Admin =

ManyToMany relationship with through_fields and Admin

2018-08-27 Thread Vincen
Hello, I'm new to Django and i'm trying to made a simple app in which users can attend to an event. I'm trying to have this manageable through the admin site but i get the following error : : (admin.E202) fk_name 'attendees' is not a ForeignKey to 'evenement.Events'. My goal is to have an