from django.db import models


class Organizer(models.Model):
    full_name = models.CharField(max_length=200)
    email = models.EmailField(
        default='', blank=True,
        help_text="This is private")
    twitter = models.CharField(max_length=255, blank=True)
    github = models.CharField(max_length=255, blank=True)
    photo = models.ImageField(upload_to='team/pyconcz2016/')

    published = models.BooleanField(default=False)

from django.db import models


class Organizer(models.Model):
    full_name = models.CharField(max_length=200)
    email = models.EmailField(
        default='', blank=True,
        help_text="This is private")
    twitter = models.CharField(max_length=255, blank=True)
    github = models.CharField(max_length=255, blank=True)
    photo = models.ImageField(upload_to='team/pyconcz2016/')

    published = models.BooleanField(default=False)

    def __str__(self):
        return self.full_name

Revert "Revert "Add string representation of organizer object""
Revert "Revert "Add string representation of organizer object""

This reverts commit 36aff772ba6720acb8f629e89954162f98a932e3.

  from django.db import models
  
  
  class Organizer(models.Model):
      full_name = models.CharField(max_length=200)
      email = models.EmailField(
          default='', blank=True,
          help_text="This is private")
      twitter = models.CharField(max_length=255, blank=True)
      github = models.CharField(max_length=255, blank=True)
      photo = models.ImageField(upload_to='team/pyconcz2016/')
  
      published = models.BooleanField(default=False)
  
+     def __str__(self):
+         return self.full_name
+ 
Revert "Revert "Add string representation of organizer object""
## Code Before:
from django.db import models


class Organizer(models.Model):
    full_name = models.CharField(max_length=200)
    email = models.EmailField(
        default='', blank=True,
        help_text="This is private")
    twitter = models.CharField(max_length=255, blank=True)
    github = models.CharField(max_length=255, blank=True)
    photo = models.ImageField(upload_to='team/pyconcz2016/')

    published = models.BooleanField(default=False)

## Instruction:
Revert "Revert "Add string representation of organizer object""
## Code After:
from django.db import models


class Organizer(models.Model):
    full_name = models.CharField(max_length=200)
    email = models.EmailField(
        default='', blank=True,
        help_text="This is private")
    twitter = models.CharField(max_length=255, blank=True)
    github = models.CharField(max_length=255, blank=True)
    photo = models.ImageField(upload_to='team/pyconcz2016/')

    published = models.BooleanField(default=False)

    def __str__(self):
        return self.full_name
