from django.contrib import admin
from .models import Tviit

admin.site.register(Tviit)
from django.contrib import admin
from .models import Tviit

class TviitAdmin(admin.ModelAdmin):
    readonly_fields=('uuid',)

admin.site.register(Tviit, TviitAdmin)
Add uuid to be readable in Admin-panel
Add uuid to be readable in Admin-panel

  from django.contrib import admin
  from .models import Tviit
  
+ class TviitAdmin(admin.ModelAdmin):
+     readonly_fields=('uuid',)
+ 
- admin.site.register(Tviit)
+ admin.site.register(Tviit, TviitAdmin)
Add uuid to be readable in Admin-panel
## Code Before:
from django.contrib import admin
from .models import Tviit

admin.site.register(Tviit)
## Instruction:
Add uuid to be readable in Admin-panel
## Code After:
from django.contrib import admin
from .models import Tviit

class TviitAdmin(admin.ModelAdmin):
    readonly_fields=('uuid',)

admin.site.register(Tviit, TviitAdmin)