diff --git a/events/admin.py b/events/admin.py index f97ff2d..5aa820d 100644 --- a/events/admin.py +++ b/events/admin.py @@ -68,8 +68,8 @@ admin.site.register(Sponsor, SponsorAdmin) class TeamAdmin(admin.ModelAdmin): raw_id_fields = ('country', 'spr', 'city', 'owner_profile', 'admin_profiles', 'contact_profiles', 'sponsors') - list_display = ('__str__', 'active', 'member_count', 'event_count', 'owner_profile', 'created_date', 'access', 'is_premium') - list_filter = ('active', 'access', 'is_premium', 'organization', ('country',admin.RelatedOnlyFieldListFilter)) + list_display = ('__str__', 'active', 'member_count', 'event_count', 'owner_profile', 'created_date', 'access') + list_filter = ('active', 'access', 'organization', ('country',admin.RelatedOnlyFieldListFilter)) ordering = ('-created_date',) def member_count(self, team): diff --git a/events/migrations/0043_remove_premium_restrictions.py b/events/migrations/0043_remove_premium_restrictions.py new file mode 100644 index 0000000..5e28a9a --- /dev/null +++ b/events/migrations/0043_remove_premium_restrictions.py @@ -0,0 +1,29 @@ +# Generated by Django 2.0 on 2018-08-25 14:19 + +from django.db import migrations + + +class Migration(migrations.Migration): + + dependencies = [ + ('events', '0042_allow_team_without_country'), + ] + + operations = [ + migrations.RemoveField( + model_name='team', + name='is_premium', + ), + migrations.RemoveField( + model_name='team', + name='premium_by', + ), + migrations.RemoveField( + model_name='team', + name='premium_expires', + ), + migrations.RemoveField( + model_name='team', + name='premium_started', + ), + ] diff --git a/events/models/profiles.py b/events/models/profiles.py index 43546e7..51720c5 100644 --- a/events/models/profiles.py +++ b/events/models/profiles.py @@ -369,11 +369,6 @@ class Team(models.Model): sponsors = models.ManyToManyField('Sponsor', related_name='teams', blank=True) - is_premium = models.BooleanField(default=settings.EVENTS_TEAMS_DEFAULT_PREMIUM) - premium_by = models.ForeignKey(UserProfile, related_name='premium_teams', null=True, blank=True, on_delete=models.SET_NULL) - premium_started = models.DateTimeField(blank=True, null=True) - premium_expires = models.DateTimeField(blank=True, null=True) - objects = models.Manager() public_objects = PublicTeamsManager() diff --git a/get_together/templates/get_together/events/show_event.html b/get_together/templates/get_together/events/show_event.html index ac6775a..7eb3924 100644 --- a/get_together/templates/get_together/events/show_event.html +++ b/get_together/templates/get_together/events/show_event.html @@ -210,7 +210,6 @@ {% endif %} - {% if event.team.is_premium %}