from django.contrib import admin
from gym_app.models import Task, Athlete, PersonalTrainer, BodyScreening, WorkoutPlan, Tracker, MailBox, Message
from django.contrib.auth.models import Permission

# Register your models here.
admin.site.register(Task)
admin.site.register(Permission)
admin.site.register(Athlete)
admin.site.register(PersonalTrainer)
admin.site.register(BodyScreening)
admin.site.register(WorkoutPlan)
admin.site.register(Tracker)
admin.site.register(MailBox)
admin.site.register(Message)





from django.contrib import admin
from gym_app.models import Task
from django.contrib.auth.models import Permission

# Register your models here.
admin.site.register(Task)
admin.site.register(Permission)





Remove permission to edit tables
Remove permission to edit tables

  from django.contrib import admin
- from gym_app.models import Task, Athlete, PersonalTrainer, BodyScreening, WorkoutPlan, Tracker, MailBox, Message
+ from gym_app.models import Task
  from django.contrib.auth.models import Permission
  
  # Register your models here.
  admin.site.register(Task)
  admin.site.register(Permission)
- admin.site.register(Athlete)
- admin.site.register(PersonalTrainer)
- admin.site.register(BodyScreening)
- admin.site.register(WorkoutPlan)
- admin.site.register(Tracker)
- admin.site.register(MailBox)
- admin.site.register(Message)
  
  
  
  
  
Remove permission to edit tables
## Code Before:
from django.contrib import admin
from gym_app.models import Task, Athlete, PersonalTrainer, BodyScreening, WorkoutPlan, Tracker, MailBox, Message
from django.contrib.auth.models import Permission

# Register your models here.
admin.site.register(Task)
admin.site.register(Permission)
admin.site.register(Athlete)
admin.site.register(PersonalTrainer)
admin.site.register(BodyScreening)
admin.site.register(WorkoutPlan)
admin.site.register(Tracker)
admin.site.register(MailBox)
admin.site.register(Message)





## Instruction:
Remove permission to edit tables
## Code After:
from django.contrib import admin
from gym_app.models import Task
from django.contrib.auth.models import Permission

# Register your models here.
admin.site.register(Task)
admin.site.register(Permission)




