I have an annoying issue where the slug field is not auto populating in admin. I have to fill the field in manually. Here’s my admin.py:-
from django.contrib import admin
from logbook.models import Trip
class TripAdmin(admin.ModelAdmin):
model = Trip
list_display = ('tripdate', 'waterway',)
prepopulated_fields = {'slug': ('tripdate', 'waterway')}
admin.site.register(Trip)