Get rid of ExpectedChange model in community lists, it's not used

- Legacy-Id: 10681
This commit is contained in:
Ole Laursen 2016-01-13 17:43:05 +00:00
parent cd5c60ccf1
commit 1b8e9eb7e4
2 changed files with 0 additions and 25 deletions

View file

@ -172,15 +172,6 @@ class DisplayConfiguration(models.Model):
super(DisplayConfiguration, self).delete()
class ExpectedChange(models.Model):
community_list = models.ForeignKey(CommunityList)
document = models.ForeignKey(Document)
expected_date = models.DateField(
verbose_name='Expected date'
)
class EmailSubscription(models.Model):
community_list = models.ForeignKey(CommunityList)
email = models.CharField(max_length=200)

View file

@ -29,22 +29,6 @@ class CommunityListResource(ModelResource):
}
api.community.register(CommunityListResource())
from ietf.doc.resources import DocumentResource
class ExpectedChangeResource(ModelResource):
community_list = ToOneField(CommunityListResource, 'community_list')
document = ToOneField(DocumentResource, 'document')
class Meta:
queryset = ExpectedChange.objects.all()
serializer = api.Serializer()
#resource_name = 'expectedchange'
filtering = {
"id": ALL,
"expected_date": ALL,
"community_list": ALL_WITH_RELATIONS,
"document": ALL_WITH_RELATIONS,
}
api.community.register(ExpectedChangeResource())
class DisplayConfigurationResource(ModelResource):
community_list = ToOneField(CommunityListResource, 'community_list')
class Meta: