# 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'
# 
# class WhamIntegerField(WhamFieldMixin, models.IntegerField):
# 
#     @property
#     def type_repr(self):
#         return 'integer'
# 
# class WhamManyToManyField(models.ManyToManyField):
# 
#     def __init__(self, *args, **kwargs):
#         self.wham_result_path = kwargs.pop('wham_result_path', None)
#         self.wham_endpoint = kwargs.pop('wham_endpoint', None)
#         self.wham_results_path = kwargs.pop('wham_results_path', ())
#         self.wham_pk_param = kwargs.pop('wham_pk_param', None)
#         self.wham_params = kwargs.pop('wham_params', {})
#         return super(WhamManyToManyField, self).__init__(*args, **kwargs)
# 
# 
# 
# 
#     @property
#     def type_repr(self):
#         return 'many to many'
# 
# class WhamFloatField(WhamFieldMixin, models.FloatField):
# 
#     @property
#     def type_repr(self):
#         return 'float'
# 
# class WhamForeignKey(models.ForeignKey):
# 
#     def __init__(self, *args, **kwargs):
#         self.wham_result_path = kwargs.pop('wham_result_path', None)
#         self.wham_endpoint = kwargs.pop('wham_endpoint', None)
#         self.wham_results_path = kwargs.pop('wham_results_path', ())
#         self.wham_pk_param = kwargs.pop('wham_pk_param', None)
#         self.wham_params = kwargs.pop('wham_params', {})
#         return super(WhamForeignKey, self).__init__(*args, **kwargs)
# 
#     def get_result_path(self):
#         result_path = self.wham_result_path
#         if not result_path:
#             return (self.name,)
#         else:
#             return result_path
# 
#     @property
#     def type_repr(self):
#         return 'foreign key'
# 
# Path: wham/models.py
# class WhamModel(models.Model):
# 
#     objects = WhamManager()
# 
#     class Meta():
#         abstract = True


from django.db import models
from wham.fields import WhamCharField, WhamTextField, WhamIntegerField, \
    WhamManyToManyField, WhamFloatField, WhamForeignKey
from wham.models import WhamModel

# Create your models here.


class EventbriteMeta:
    base_url = 'https://www.eventbriteapi.com/v3/'
    requires_oauth_token = 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'
# 
# class WhamIntegerField(WhamFieldMixin, models.IntegerField):
# 
#     @property
#     def type_repr(self):
#         return 'integer'
# 
# class WhamManyToManyField(models.ManyToManyField):
# 
#     def __init__(self, *args, **kwargs):
#         self.wham_result_path = kwargs.pop('wham_result_path', None)
#         self.wham_endpoint = kwargs.pop('wham_endpoint', None)
#         self.wham_results_path = kwargs.pop('wham_results_path', ())
#         self.wham_pk_param = kwargs.pop('wham_pk_param', None)
#         self.wham_params = kwargs.pop('wham_params', {})
#         return super(WhamManyToManyField, self).__init__(*args, **kwargs)
# 
# 
# 
# 
#     @property
#     def type_repr(self):
#         return 'many to many'
# 
# class WhamFloatField(WhamFieldMixin, models.FloatField):
# 
#     @property
#     def type_repr(self):
#         return 'float'
# 
# class WhamForeignKey(models.ForeignKey):
# 
#     def __init__(self, *args, **kwargs):
#         self.wham_result_path = kwargs.pop('wham_result_path', None)
#         self.wham_endpoint = kwargs.pop('wham_endpoint', None)
#         self.wham_results_path = kwargs.pop('wham_results_path', ())
#         self.wham_pk_param = kwargs.pop('wham_pk_param', None)
#         self.wham_params = kwargs.pop('wham_params', {})
#         return super(WhamForeignKey, self).__init__(*args, **kwargs)
# 
#     def get_result_path(self):
#         result_path = self.wham_result_path
#         if not result_path:
#             return (self.name,)
#         else:
#             return result_path
# 
#     @property
#     def type_repr(self):
#         return 'foreign key'
# 
# Path: wham/models.py
# class WhamModel(models.Model):
# 
#     objects = WhamManager()
# 
#     class Meta():
#         abstract = True


# Path: wham/apis/eventbrite/models.py
from django.db import models
from wham.fields import WhamCharField, WhamTextField, WhamIntegerField, \
    WhamManyToManyField, WhamFloatField, WhamForeignKey
from wham.models import WhamModel


# Create your models here.


class EventbriteMeta:
    base_url = 'https://www.eventbriteapi.com/v3/'
    requires_oauth_token = True



class EventbriteVenue(WhamModel):