mirror of
https://github.com/RoboSats/robosats.git
synced 2025-02-22 13:19:02 +00:00
Add complete robot inline
This commit is contained in:
parent
c50b5c4f3b
commit
520a245f82
@ -18,8 +18,15 @@ admin.site.unregister(User)
|
||||
admin.site.unregister(TokenProxy)
|
||||
|
||||
|
||||
class RobotInline(admin.StackedInline):
|
||||
model = Robot
|
||||
can_delete = False
|
||||
show_change_link = True
|
||||
|
||||
|
||||
@admin.register(User)
|
||||
class EUserAdmin(AdminChangeLinksMixin, UserAdmin):
|
||||
inlines = [RobotInline]
|
||||
list_display = (
|
||||
"id",
|
||||
"robot_link",
|
||||
|
Loading…
Reference in New Issue
Block a user