from django.db import models
from django.contrib.auth.models import AbstractUser


class User(AbstractUser):
    faculty_number = models.CharField(max_length=8)

    def __unicode__(self):
        return unicode(self.username)

    def attended_meetings(self):
        return self.protocols.all()

from django.db import models
from django.contrib.auth.models import AbstractUser


class User(AbstractUser):
    faculty_number = models.CharField(max_length=8)

    def __unicode__(self):
        return unicode(self.username)

    def attended_meetings(self):
        return self.meetings_attend.all()

    def absent_meetings(self):
        return self.meetings_absent.all()

Add attended_meetings and absent_meetings methos to User class
Add attended_meetings and absent_meetings methos to User class

  from django.db import models
  from django.contrib.auth.models import AbstractUser
  
  
  class User(AbstractUser):
      faculty_number = models.CharField(max_length=8)
  
      def __unicode__(self):
          return unicode(self.username)
  
      def attended_meetings(self):
-         return self.protocols.all()
+         return self.meetings_attend.all()
  
+     def absent_meetings(self):
+         return self.meetings_absent.all()
+ 
Add attended_meetings and absent_meetings methos to User class
## Code Before:
from django.db import models
from django.contrib.auth.models import AbstractUser


class User(AbstractUser):
    faculty_number = models.CharField(max_length=8)

    def __unicode__(self):
        return unicode(self.username)

    def attended_meetings(self):
        return self.protocols.all()

## Instruction:
Add attended_meetings and absent_meetings methos to User class
## Code After:
from django.db import models
from django.contrib.auth.models import AbstractUser


class User(AbstractUser):
    faculty_number = models.CharField(max_length=8)

    def __unicode__(self):
        return unicode(self.username)

    def attended_meetings(self):
        return self.meetings_attend.all()

    def absent_meetings(self):
        return self.meetings_absent.all()
