# Path: sequere/registry.py
# class SequereRegistry(dict):
#     def __init__(self):
#     def for_model(self, model):
#     def get_identifier(self, instance):
#     def identifiers(self):
#     def unregister(self, name):
#     def register(self, *args, **kwargs):
#     def _register_model(self, model, sequere=None,
#                         name=None, **kwargs):
#     def _register(self, sequere):
# def autodiscover():
# def register(*args, **kwargs):
# 
# Path: sequere/models.py
# def follow(from_instance, to_instance):
# def is_following(from_instance, to_instance):
# def unfollow(from_instance, to_instance):
# def get_followings(instance, *args, **kwargs):
# def get_followings_count(instance, *args, **kwargs):
# def get_followers_count(instance, *args, **kwargs):
# def get_followers(instance, *args, **kwargs):
# def get_friends_count(instance, *args, **kwargs):
# def get_friends(instance, *args, **kwargs):


from django import template
from sequere.registry import registry
from sequere import models


register = template.Library()


@register.filter
def identifier(instance, arg=None):
    return registry.get_identifier(instance)


@register.filter
def followers_count(instance, identifier=None):
    return models.get_followers_count(instance, identifier)


@register.filter
def followings_count(instance, identifier=None):

# Path: sequere/registry.py
# class SequereRegistry(dict):
#     def __init__(self):
#     def for_model(self, model):
#     def get_identifier(self, instance):
#     def identifiers(self):
#     def unregister(self, name):
#     def register(self, *args, **kwargs):
#     def _register_model(self, model, sequere=None,
#                         name=None, **kwargs):
#     def _register(self, sequere):
# def autodiscover():
# def register(*args, **kwargs):
# 
# Path: sequere/models.py
# def follow(from_instance, to_instance):
# def is_following(from_instance, to_instance):
# def unfollow(from_instance, to_instance):
# def get_followings(instance, *args, **kwargs):
# def get_followings_count(instance, *args, **kwargs):
# def get_followers_count(instance, *args, **kwargs):
# def get_followers(instance, *args, **kwargs):
# def get_friends_count(instance, *args, **kwargs):
# def get_friends(instance, *args, **kwargs):


# Path: sequere/templatetags/sequere_tags.py
from django import template
from sequere.registry import registry
from sequere import models



register = template.Library()


@register.filter
def identifier(instance, arg=None):
    return registry.get_identifier(instance)


@register.filter
def followers_count(instance, identifier=None):
    return models.get_followers_count(instance, identifier)


@register.filter
def followings_count(instance, identifier=None):

    return models.get_followings_count(instance, identifier)