mirror of
https://github.com/RoboSats/robosats.git
synced 2024-09-11 14:05:51 +03: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)
|
admin.site.unregister(TokenProxy)
|
||||||
|
|
||||||
|
|
||||||
|
class RobotInline(admin.StackedInline):
|
||||||
|
model = Robot
|
||||||
|
can_delete = False
|
||||||
|
show_change_link = True
|
||||||
|
|
||||||
|
|
||||||
@admin.register(User)
|
@admin.register(User)
|
||||||
class EUserAdmin(AdminChangeLinksMixin, UserAdmin):
|
class EUserAdmin(AdminChangeLinksMixin, UserAdmin):
|
||||||
|
inlines = [RobotInline]
|
||||||
list_display = (
|
list_display = (
|
||||||
"id",
|
"id",
|
||||||
"robot_link",
|
"robot_link",
|
||||||
|
Loading…
Reference in New Issue
Block a user