Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F/#68 apify contact emails #91

Merged
merged 7 commits into from
Apr 1, 2013
Merged

F/#68 apify contact emails #91

merged 7 commits into from
Apr 1, 2013

Conversation

AndreiDuma
Copy link
Contributor

The API provides a new entry in the Subject resource: contact_emails, which is a list of emails.

bundle.data['contact_emails'] = contact_list
return bundle

def determine_format(self, request):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's not do this. Read about serializers http://django-tastypie.readthedocs.org/en/latest/serialization.html and put it in the base class.

@AndreiDuma
Copy link
Contributor Author

@bogdans83 , review again, please? :)

@bogdans83
Copy link
Contributor

lgtm, but you haven't tested out the method :P leave at least a TODO

@AndreiDuma
Copy link
Contributor Author

I'll postpone the merging until I write some tests. Although I'm not fond of it, I have to do it.


class BaseResource(ModelResource):
class Meta:
pass
serializer = Serializer(formats=['json'])
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

aismail pushed a commit that referenced this pull request Apr 1, 2013
@aismail aismail merged commit 8abf05f into master Apr 1, 2013
@AndreiDuma AndreiDuma deleted the f/#68-apify-contact-emails branch April 6, 2013 08:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants