# Path: wham/fields.py
# class WhamCharField(WhamFieldMixin, models.TextField):
# 
#     @property
#     def type_repr(self):
#         return 'char'
# 
# class WhamTextField(WhamFieldMixin, models.TextField):
# 
#     @property
#     def type_repr(self):
#         return 'text'
# 
# Path: wham/models.py
# class WhamModel(models.Model):
# 
#     objects = WhamManager()
# 
#     class Meta():
#         abstract = True


from django.template.loader import render_to_string
from wham.fields import WhamCharField, WhamTextField
from wham.models import WhamModel
# Create your models here.


class FacebookMeta:
    base_url = 'https://graph.facebook.com/'
    requires_oauth_token = True

class FacebookUser(WhamModel):

    id = WhamCharField(max_length=255, primary_key=True)

# Path: wham/fields.py
# class WhamCharField(WhamFieldMixin, models.TextField):
# 
#     @property
#     def type_repr(self):
#         return 'char'
# 
# class WhamTextField(WhamFieldMixin, models.TextField):
# 
#     @property
#     def type_repr(self):
#         return 'text'
# 
# Path: wham/models.py
# class WhamModel(models.Model):
# 
#     objects = WhamManager()
# 
#     class Meta():
#         abstract = True


# Path: wham/apis/facebook/models.py
from django.template.loader import render_to_string
from wham.fields import WhamCharField, WhamTextField
from wham.models import WhamModel

# Create your models here.


class FacebookMeta:
    base_url = 'https://graph.facebook.com/'
    requires_oauth_token = True

class FacebookUser(WhamModel):

    id = WhamCharField(max_length=255, primary_key=True)

    username = WhamTextField(unique=True)