mirror of
https://github.com/pinry/pinry.git
synced 2025-11-13 08:35:41 +01:00
Refactor: Remove unused origin field from Pin
This commit is contained in:
19
core/migrations/0006_remove_pin_origin.py
Normal file
19
core/migrations/0006_remove_pin_origin.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.26 on 2020-02-11 04:09
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('core', '0005_merge_20191122_0450'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name='pin',
|
||||
name='origin',
|
||||
),
|
||||
]
|
||||
@@ -84,9 +84,6 @@ class Board(models.Model):
|
||||
class Pin(models.Model):
|
||||
submitter = models.ForeignKey(User)
|
||||
url = models.CharField(null=True, blank=True, max_length=256)
|
||||
# origin is tha same as referer but not work,
|
||||
# should be removed some day
|
||||
origin = models.CharField(null=True, blank=True, max_length=256)
|
||||
referer = models.CharField(null=True, blank=True, max_length=256)
|
||||
description = models.TextField(blank=True, null=True)
|
||||
image = models.ForeignKey(Image, related_name='pin')
|
||||
|
||||
@@ -75,7 +75,6 @@ class PinSerializer(serializers.HyperlinkedModelSerializer):
|
||||
"id",
|
||||
"submitter",
|
||||
"url",
|
||||
"origin",
|
||||
"description",
|
||||
"referer",
|
||||
"image",
|
||||
|
||||
Reference in New Issue
Block a user