# Path: django_ratings/models.py
# ANONYMOUS_KARMA = getattr(settings, 'ANONYMOUS_KARMA', 1)
# INITIAL_USER_KARMA = getattr(settings, 'ANONYMOUS_KARMA', 4)
# MINIMAL_ANONYMOUS_IP_DELAY = getattr(settings, 'MINIMAL_ANONYMOUS_IP_DELAY', 1800)
# RATINGS_COOKIE_NAME = getattr(settings, 'RATINGS_COOKIE_NAME', 'ratings_voted')
# RATINGS_MAX_COOKIE_LENGTH = getattr(settings, 'RATINGS_MAX_COOKIE_LENGTH', 20)
# RATINGS_MAX_COOKIE_AGE = getattr(settings, 'RATINGS_MAX_COOKIE_AGE', 3600)
# PERIOD_CHOICES = (
#     ('d', 'day'),
#     ('m', 'month'),
#     ('y', 'year'),
# )
# class UserKarmaManager(models.Manager):
# class UserKarma(models.Model):
#     class Meta:
# class TotalRateManager(models.Manager):
# class TotalRate(models.Model):
#     class Meta:
# class AggManager(models.Manager):
# class Agg(models.Model):
#     class Meta:
# class RatingManager(models.Manager):
# class Rating(models.Model):
#     class Meta:
#     def total_rate_to_karma(self):
#     def get_normalized_rating(self, obj, top, step=None):
#     def get_for_object(self, obj):
#     def get_top_objects(self, count, mods=[]):
#     def __unicode__(self):
#     def move_agg_to_agg(self, time_limit, time_format):
#     def agg_assume(self):
#     def agg_to_totalrate(self):
#     def __unicode__(self):
#     def get_for_object(self, obj):
#     def move_rate_to_agg(self, time_limit, time_format):
#     def __unicode__(self):
#     def save(self, **kwargs):


from django.contrib import admin
from django_ratings.models import Rating, TotalRate, ModelWeight


class RatingOptions(admin.ModelAdmin):
    list_filter = ('time', 'target_ct',)
    list_display = ('__unicode__', 'time', 'amount', 'user',)

class TotalRateOptions(admin.ModelAdmin):
    list_filter = ('target_ct',)
    list_display = ('__unicode__', 'amount')

class ModelWeightOptions(admin.ModelAdmin):
    list_filter = ('content_type',)
    list_display = ('content_type', 'weight', 'owner_field',)

admin.site.register(Rating, RatingOptions)
admin.site.register(TotalRate, TotalRateOptions)

# Path: django_ratings/models.py
# ANONYMOUS_KARMA = getattr(settings, 'ANONYMOUS_KARMA', 1)
# INITIAL_USER_KARMA = getattr(settings, 'ANONYMOUS_KARMA', 4)
# MINIMAL_ANONYMOUS_IP_DELAY = getattr(settings, 'MINIMAL_ANONYMOUS_IP_DELAY', 1800)
# RATINGS_COOKIE_NAME = getattr(settings, 'RATINGS_COOKIE_NAME', 'ratings_voted')
# RATINGS_MAX_COOKIE_LENGTH = getattr(settings, 'RATINGS_MAX_COOKIE_LENGTH', 20)
# RATINGS_MAX_COOKIE_AGE = getattr(settings, 'RATINGS_MAX_COOKIE_AGE', 3600)
# PERIOD_CHOICES = (
#     ('d', 'day'),
#     ('m', 'month'),
#     ('y', 'year'),
# )
# class UserKarmaManager(models.Manager):
# class UserKarma(models.Model):
#     class Meta:
# class TotalRateManager(models.Manager):
# class TotalRate(models.Model):
#     class Meta:
# class AggManager(models.Manager):
# class Agg(models.Model):
#     class Meta:
# class RatingManager(models.Manager):
# class Rating(models.Model):
#     class Meta:
#     def total_rate_to_karma(self):
#     def get_normalized_rating(self, obj, top, step=None):
#     def get_for_object(self, obj):
#     def get_top_objects(self, count, mods=[]):
#     def __unicode__(self):
#     def move_agg_to_agg(self, time_limit, time_format):
#     def agg_assume(self):
#     def agg_to_totalrate(self):
#     def __unicode__(self):
#     def get_for_object(self, obj):
#     def move_rate_to_agg(self, time_limit, time_format):
#     def __unicode__(self):
#     def save(self, **kwargs):


# Path: django_ratings/admin.py
from django.contrib import admin
from django_ratings.models import Rating, TotalRate, ModelWeight



class RatingOptions(admin.ModelAdmin):
    list_filter = ('time', 'target_ct',)
    list_display = ('__unicode__', 'time', 'amount', 'user',)

class TotalRateOptions(admin.ModelAdmin):
    list_filter = ('target_ct',)
    list_display = ('__unicode__', 'amount')

class ModelWeightOptions(admin.ModelAdmin):
    list_filter = ('content_type',)
    list_display = ('content_type', 'weight', 'owner_field',)

admin.site.register(Rating, RatingOptions)
admin.site.register(TotalRate, TotalRateOptions)

admin.site.register(ModelWeight, ModelWeightOptions)