mirror of
https://github.com/pinry/pinry.git
synced 2025-11-13 16:45:41 +01:00
Add "origin" field to the Pin model
"origin" is an optional field that stores the URI for the site that the image has been saved from, it's going to be used only from bookmarklet. Fixes #63
This commit is contained in:
@@ -114,7 +114,7 @@ class PinResource(ModelResource):
|
||||
return super(PinResource, self).save_m2m(bundle)
|
||||
|
||||
class Meta:
|
||||
fields = ['id', 'url', 'description']
|
||||
fields = ['id', 'url', 'origin', 'description']
|
||||
ordering = ['id']
|
||||
queryset = Pin.objects.all()
|
||||
resource_name = 'pin'
|
||||
|
||||
Reference in New Issue
Block a user