mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 13:17:50 +02:00
Add private properties and consist thumbnail
This commit is contained in:
@@ -31,6 +31,7 @@ class ConsistAdmin(SortableAdminBase, admin.ModelAdmin):
|
||||
"consist_address",
|
||||
"company",
|
||||
"era",
|
||||
"image",
|
||||
"notes",
|
||||
"tags",
|
||||
)
|
||||
|
18
ram/consist/migrations/0003_consist_image.py
Normal file
18
ram/consist/migrations/0003_consist_image.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# Generated by Django 4.0.6 on 2022-07-12 12:26
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('consist', '0002_alter_consist_options'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='consist',
|
||||
name='image',
|
||||
field=models.ImageField(blank=True, null=True, upload_to='images/'),
|
||||
),
|
||||
]
|
@@ -17,6 +17,7 @@ class Consist(models.Model):
|
||||
Company, on_delete=models.CASCADE, null=True, blank=True
|
||||
)
|
||||
era = models.CharField(max_length=32, blank=True)
|
||||
image = models.ImageField(upload_to="images/", null=True, blank=True)
|
||||
notes = models.TextField(blank=True)
|
||||
creation_time = models.DateTimeField(auto_now_add=True)
|
||||
updated_time = models.DateTimeField(auto_now=True)
|
||||
|
Reference in New Issue
Block a user