Fakultas Ilmu Komputer UI

Commit d9a39306 authored by Ryan Karyadiputera's avatar Ryan Karyadiputera
Browse files

test3

parent e230ae1a
Pipeline #81595 passed with stage
in 2 minutes and 27 seconds
# Generated by Django 3.1.3 on 2021-06-06 14:22
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('lembaga', '0005_errormessage'),
]
operations = [
migrations.AddField(
model_name='lembaga',
name='last_insertion',
field=models.IntegerField(blank=True, null=True, verbose_name='last insertion'),
),
]
......@@ -35,7 +35,7 @@ class Lembaga(models.Model):
beneficaries = models.CharField(max_length=1024)
alamat = models.CharField(max_length=1024)
praktikum_ke = models.IntegerField()
# last_activity = models.IntegerField('last activity', blank=True, null=True)
last_insertion = models.IntegerField('last insertion', blank=True, null=True)
def __str__(self):
return self.nama
......
......@@ -75,7 +75,7 @@ class LembagaSerializer(serializers.ModelSerializer):
praktikum_ke = validated_data.pop('praktikum_ke')
beneficaries = validated_data.pop('beneficaries')
alamat = validated_data.pop('alamat')
# last_activity = validated_data.pop('last_activity')
last_insertion = validated_data.pop('last_insertion')
nama_tema = validated_data.pop('tema')['nama']
......@@ -99,7 +99,7 @@ class LembagaSerializer(serializers.ModelSerializer):
lembaga.praktikum_ke = praktikum_ke
lembaga.beneficaries = beneficaries
lembaga.alamat = alamat
# lembaga.last_activity = last_activity
lembaga.last_insertion = last_insertion
lembaga.save()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment