Oh, I Found a Security Issue
Published October 26, 2026
This video features Erik Guldager Laustsen and Johan Valentini Jensen at DjangoCon Europe 2024 in Vigo, Spain.
Talk: ProBo: 240.000+ Django Admin Staff Users in a one SaaS (What you are not supposed to do, we did it!) by Erik Guldager Laustsen and Johan Valentini Jensen
https://pretalx.evolutio.pt/
ProBo built a Danish property-administration SaaS largely on top of Django Admin, growing from a small customer base to more than 240,000 staff users with a very small development team. The speakers explain that Django Admin provided CRUD screens, permissions, filtering, search, pagination, and change-list behavior quickly enough to meet a tight delivery schedule, while custom querysets and groups handled community- and portfolio-level access. They extended the admin by reusing its internals and templates, adding HTMX-driven active change lists, infinite scrolling, global search, safer inline editing, and a redesigned accessible frontend with web components and lightweight JavaScript. Their central argument is that Django Admin is more extensible than its documentation and common advice suggest, provided developers are willing to read its source code and work closely with its implementation.
Summarised automatically from the transcript.
Yes. ProBo built most of its application on Django admin and had about 150,000 staff users when it was sold, approaching 250,000 users later, with the core product largely built by about two and a half developers.
Discussed at 0:00ProBo used Django auth groups for module permissions, then customized the setup so a person could have different roles in different communities and belong to multiple communities. Admin sites also helped control permissions and dashboard widgets.
Discussed at 6:48They captured the community from the subdomain in middleware and filtered the queryset through a shared community-based model. The same mechanism also handled narrower subsets of data for individual employees.
Discussed at 10:37ProBo reused Django admin’s existing changelist machinery: it already applies the model queryset, permissions, filtering, searching, ordering, and pagination. They rendered those results through HTMX in a custom template and enabled the active change list with a feature flag.
Discussed at 12:16They registered the admin models they wanted searchable, displayed them in an autocomplete field, and reused each model admin’s changelist to return the results. A small amount of monkey patching reduced the displayed fields so the results fit in the modal.
Discussed at 15:25ProBo retained much of the admin’s HTML and template structure, which let its scripts and extensions keep working, while restyling the interface and selectively replacing templates. They later added HTMX, web components, module-loaded JavaScript, and accessibility improvements while still relying on server-rendered Django forms and templates.
Discussed at 18:47ProBo replaced the standard inline workflow with an HTMX-based version, reusing Django admin’s inline and mixin machinery. This gave users a safer, more interactive way to add and delete inline records.
Discussed at 24:01Automatically transcribed, so expect mistakes in names and technical terms.
Speaker 1
Hello everybody. We're super psyched to be here. Yeah, I'd like to just say we changed the title a little bit because we're so close to two hundred and fifty thousand and it just looks a lot better than the two forty that it's originally said. Yeah We are do doing a Danish Prop Tech SAS application for property administrators, which is a little bit particular for Danish law, it's for co-op communities and partly owner communities. Yeah we are a real jazz enthusiast, so using Django Reinheits framework just makes so much sense.
Speaker 2
Yep, absolutely. So just a very short shortly why we are here. We went to GiancuCon 2022 in Portugal Porto. And we saw a lot of cool stuff that inspired some of the decisions we made technically at that point in time as well. We wanted to Just tell our story about how we used the Django admin to build most of our application. It's not a recipe for any application, but we had a lot of great joy of basically building on top of that. So we just wanna give a bit back on how we got some cool stuff
basically. This is this is what you meet when you browse around the internet. It's it's mostly saying that don't use Django admin for anything, like don't build on top of it. This is all basically have written after we started our project. I think maybe luckily because otherwise we might have been discouraged to use it as well. And we might not have been where we are today in terms of having a successful product built on top of it. Yeah. Like even the ad the documentation of it says don't. But we got a lot o out of it.
Speaker 1
Yeah actually I'll just mention I think the most important word here is intended because it does leave the door open, right? Yeah so I just want to go through our timeline quickly because it's sort of part of the important history. Our colleagues started this sort of property homepage application in 2012, so quite a long time ago. And they built it. They had, I think at the time where we entered twelve customers, it's
Speaker 3
business to business. And there were twenty modules doing quite a lot of critical infrastructure for our customers and a lot of it was you know how back at that time there was a lot of printing, there was a lot of sending stuff around. Part of this Danish law is that the board has to sign if the when there's a new invoice everyone has to sign it and then it's sent back. So There's a lot of just paperwork and sort of documentation and they digitized this. And so we entered in twenty seventeen. It was at the time they did a responsive website to begin with and just a lot of things had to be changed. One thing also was that the main login was each the property had like one login per board, which would mean you know
when the board left, one member would be leaving, they would still have the access and it would be like one, two, three as the password. And I think You can hear sort of the GDPR monster screaming ha. So without we had to do, you know use a sort of personalized login. And we knew we didn't have a lot of time. There was about nine to ten months to just sort of duplicate these modules, but also there were thoughts of doing like a whole messaging notification system. So there's definitely a pretty tight schedule. So I started working on it pretty quickly through first sort of iteration out because I could see it wouldn't work with the messaging system and Johan
Joined doing frontend in June. The first customer was mighty created these nine, ten months later. And Pretty much exactly three years later we sold to EG which is a major s Scandinavian software company. At the time we had a hundred and fifty thousand users, all Django Elmin staff users we were two and a half developers and now we yeah you can see the figures. And we just hired a new developer mostly so we could be here today. He could be taking care of business. But the so you see the sort of point is one developer doing a lot of stuff and we've the whole you know journey has just been pretty much your hand on me Doing the whole thing and yeah, that will send me on. So this is the
yeah it's a little bit probably not detailed But this is actually our Django L menu. And I think you'll recognise some things like searching, filtering at the top right. The menu is a little bit more like intricate. We have actually three, there's a profile menu, there's a community member menu and like the more general but nested menu. And then you may perhaps you can see the toggle list that contains more information and the dot menu. So we added a lot of stuff to it And yeah, this is just part of it. So when I started building it, I thought, well, I have fifteen to twenty modules I have to redo in nine months. And five of those were like really customized stuff and the rest was like very straight up crud
with tiny changes in label labels and stuff. And I just thought if I have to make this by myself, I have to go really fast. I was thinking, you know, should I go expand, rest like pretty much everyone else and I just knew I wouldn't be able to make it So I thought I'll make these 15 straight up product patients during Django Elmin. I know I can do it fairly easily. The old application didn't have like even basic searching and filtering and stuff so I knew I could add lots of value even from the get-go on top of the duplication of
Speaker 1
of it and also I knew I mean just building a messy messaging app and notification system, I could probably spend the whole time just doing that myself. And I had to do that also in these 10 months. And I thought, well the main thing is actually I might just go here and show you if you can tell this is Part of the permission diagram we have the tutu which are is this our admin users.
Speaker 3
We just changed the name into tutu We have partners which is our customers. We work closely with them so we call them partners. We have provinces which each partner has many, like a portfolio of partners. Properties sorry and the support and resident permissions lots of permission on permission handling and i knew that that was something I could probably get auth groups to do. Only thing is if you're a board member in one community, maybe you're not in the other one. And everyone could have multiple communities so I had to tweak it. But it turns out it was actually fairly easy. I spent probably like one day doing it, just sort of a
Proof of concept and I thought wow if I can do this that easily That really helps me in solving all the permission issues, and I can get going with all these really easy crowd applications. I thought, okay, go. And I could start building first the straight-up stuff and then you know see how much how much time I'd have to do the customized stuff afterwards. And so we have a bunch of admin sites. As I mentioned before, they take care of some permission handling but also like what widges to display on the dashboard. other things not that important. The main one being contrived auth groups because everyone can
have sort of like a mishmash of the groups overlapping and they all take care of the module admin permissions. Yeah and then the thing is so if you are a direct customer of ours you have the portfolio of communities that you can access And I'll show you the code later, which is super simple. But then also if you're logged in just to one community, you want to just show the ch the scope of the data just within this community. And you can see it in the in the domain it's by a subdomain. Yeah. And then we have we have a little bit of also some properties communities have some sp apps some others they don't, depending on what their
Property administrator. You know, maybe they have to pay extra for it or whatever it might be. And so that is handled specifically in each model element And we had a little bit of row level permissions, but not very much. So we didn't really need to implement some other library for it or anything And it actually turns out that this is the only place where we really have straight up copy pasted Django admin. Source code which is a little bit painful because everywhere else it seems like there's always some option of just like hooking yourself in but this one place I really wish allowed for better sort of just extending yeah.
I hope you can see this. It's just it very like basic stuff. Ours is it's a lot longer, but I just wanted to highlight some things. You saw the list display toggle fields which so they open the expanded list. We have menu icons, just a few things, you know, super easy stuff like the save button label. Sometimes it just had to say something different than save. So we can override that. Maybe we had to also fix the template. But it yeah, it's you know very straightforward, like changing the title above stuff like that. We have lots of that. Then I just want to just the point type the pinpoint the query set because every
almost every model inherits from the community based model so they have the community relation. And that makes it super easy because as soon as there's a subdomain we can catch it in the middleware, we can filter and get queries that means we make sure that you know there's just the subset that should be there. Really easy. And also there's a little bit of like so maybe at one partner employee will only have a subset of the subset and we can handle it and that will take care of all the model elements that inherit from it. So that it just shows you a few lines that take care of so much business for us. When I guess about a year ago we decided to do
an upgrade of our front end and We didn't actually really have time to do any sort of more advanced activity, but I thought we'll give it a shot anyway, because I really wanted to have that more of Like active feel like I hadn't forgotten about doing the spa feel and I think mostly we really missed it for the change lists. So I'll just go ahead and show you what we what it looks like. See so there's infinity infinite scrolling, there's and it's actually pretty fast, there's about 800,000 rows I think. There's active searching and you'll see also extra filtering in a second. And the thing is, as I was just sort of poking around to see, I knew I didn't have the time to build this from scratch myself and I was thinking
that must be lots of stuff I can reuse. And it turns out there's a so we did an active change list view that we can actually turn on just sort of by a feature flag in the top of the admin model And this is pretty much it. And the thing is I was looking at it yesterday and I realized none of these lines of code was actually something I created. It was it's all taken from someplace in Django admin. And when you look at it it's it's it's very simple. I think you will see also in you know getting the changelist instance. Building the form set and then the start of the show, the really the big attraction is the changelist with Chris. It's because it actually does all these things and it n now it turns out it does the same thing in many pla
many places. And first of all it calls what you just saw before on each model admin. It calls the get query set directly on the model admin. Afterwards it handles this. So if we have permissions in that it will take care of that. It'll go on, it'll do filtering, searching, and ordering, depending on of course the custom parameters so much stuff goes on, it's you know for free. It was already there. Those pagination handles, there's a little bit of extra details in there that I left out to make it fit in into one screen And instead of going to a template, doing some template text, going into another function and stuff, we're just doing calling the just result
list function directly and putting out it out in our own template. And then you can see we can you can the chancelist HTMX element and below is the switch element s and the and then there's also the i infinite the scrolling element and they all just call the same function doing the same thing. There's so much reuse in this and it I think it took me to get the basics of it, you know, a few hours going and I was like, wow, how long would it have taken me if I had to do all these elements sort of over again from building from scratch yeah, then right after I was actually looking into getting some kind of internal tool for searching easier because we have so many
Different modules, lots and lots of data and often for support issues for instance someone has to find a specific invoice for a specific community And there's a little bit of like a clicking and lots of sort of performance going on because we have to load everything in the beginning. And I was thinking what can we do? And I saw someone doing like a modal that you could access from anywhere and sort of just input a little bit of data and then have active searching right there. And so I think yeah here it actually is So this is a test partner calling community, a property, and this is the name.
And so it just comes straight up, we can tap to it, we can go to it directly instead of you know going to the menu, calling the changes, searching for it, clicking and then we're there. And we the thing is, let me just actually pause that. Sorry. The thing is that I'm going many places. I can just tell you Hold on just one second. Here we are. Yeah. You see the admins? So all it really takes is adding the admins that we want to be able to search. And they pop up in the auto field, autocomplete field, and because we have this which you saw before the active change list, when we can actually get the model admin class
and we can instantiate it, we can call it directly. Only thing is, I don't know if you noticed, but Usually we have like lots of list display fields that could be six or eight. And I just wanted you know a simpler version to fit in the model. So I had to do a little bit of monkey patching to just get like the basic list display fields. And then returning the active changes. So what came from before, from the individual model and it could just be reused in this instance. It's like so much value and it turned out that in the beginning we used it just internally, but of course our customers really enjoyed this also. It's just a little bit of tweaking So I hope this leaves you with a little bit of an impression of wow, this
all this stuff that can be reused and it's actually right there. And s yeah, let's just see show of hands of who is using the Django admin like almost every day How many has been looking into contribe admin options pie within the last week Yeah, see and it's it's that's interesting to me because that's like my that's my home. I live there. There's so much good stuff, there's there's so much that can be reused And I was going to say that this is all very easy, but I heard the I think it was Mia talking about she was sort of looking for some of the same solutions and she found it hard. And we've been doing it for so long that it's a little bit hard to say what it was actually like in the beginning. But
I would say the time that you spent sort of getting to these places within the core admin source code is really it ri it returns like tenfold.
Speaker 2
Alright, so obviously we had to do a bit of front end tweaking as well, because we could. We did a lot of back-end stuff, obviously. You saw a lot of the new design as well. This is this is what you get out of the box mostly. This is actually a fairly modern version of the admin. But we had to do more. So let's go a little fancy. This is where we started. This is the first version. wanted to do use most of the default sections. We kept the most of the sidebars, the dashboard is obviously something we stick together as well.
But Otherwise the menus and a lot of stuff in terms of rendering the lists and inlines and all this stuff is fairly unmodified I'd say. We reused that l a lot in that way, and got very far with that actually, without redoing a lot. So mostly we kept most of the HTML structure which allowed us to reuse a lot of default admin functionality in terms of default scripts. Also admin extensions just kept working without too much In modification basically. But we kn did a lot of restyling, obviously. Which is most of the work actually.
But we made a version two as well. And for that part we kind of wanted to scale down whatever didn't work. So we tried to keep what worked, keep what sparked joy. We wanted to reduce a bit of tool chain, we th wanted to modernize a bit But still leaning into Django, Django admin, relying on server templating, all this stuff that you kinda lean on Django to do a lot of the hard work that we already are doing. So this is what it looks like today. We did some besides the visual stuff, we did some other stuff to do some accessibility tweaks.
We wanted to make it a bit easier to do s some of this kind of stuff in a more modern way. So we did redid a lot of actual templates, but still keeping the structure of the templates in the base templates of the admin, but otherwise tweaking the HTM To make sure that we got some of the new features we wanted out of it. We used a lot of web components gonna show a bit of that as well. But otherwise we try to scale down use modern front end tools like excript the module loading of the JavaScript. We used a lot of HTMX as you've seen. This is very cool to make it feel a lot more a bit more interactive. We used slippers, which I
Love very much. We saw the storybook Django from Gibo, which is somewhere here probably we saw some interaction with that, doing some web components and doing some componentized Django to make sure that it's more organized when you build this stuff out. But otherwise of all the money stuff is just forms fields a bit of layout supported by crispy forms and some good stuff in that way. This is just to I saw some Alpine jazz and some HTMX. This is just web components.
Like native browser stuff. We use some slippers in here, we use some I'll show you as well, but otherwise it's fairly just native web components. I just want to go buy it because I saw the other stuff. This is Just works in the browser, it doesn't do anything else, it doesn't needs to be compiled. There's some if you want, you can do some local styling as well, which keeps it simple at start. You can extend that out if you want. But otherwise, I know this might look a bit intimidating if you don't not used to it, but it's it's very simple stuff. This is the Clarish Shadow DOM version you got a template inside and the style as well. But you can also just use the normal snack bar that we have here and without the all the inner fittings
and you can with a bit of scripting you can hook into that and use the nature browser also binding so when you the classic problem of changing the DOM or injecting it with HTMX for example, you have to rebind events if you've got a click like eventlessness of any sort. This stuff makes it all just kind of very easy to just use the browser's native functionality of it and it kind of just works. The It can be a bit verbose, but otherwise the idea of it is fairly simple. You can connect you can add event listeners as soon as it's injected into the DOM with a connected callback. You can observe some attributes if you want to react to anything what
being modified outside from the any from any place, scripting or otherwise. And you just kinda define to be to be basically observed. So whenever it's injected into DOM somewhat it's automatically loaded. And so this is how we use most of this. We Make a slippers template of it and kinda use it this way in our in our templates. Fairly simple stuff some other admin enhancements.
Speaker 1
I think we'll probably do them really quickly. Yes.
Speaker 3
let's just see. We have yeah, active changeless fuels. With the ACMX, also super simple, really it's a generic solution. We can use it pretty much everywhere I sec i except for like file all uploads. Another example actually Yeah, yeah, I should just mention I think that one of the really completely shitty UX solutions in the admin is inlines and we've ha had so many customers wanting to delete something and they hit the checkbox and then they hit delete on the whole object and so everything is deleted. And yeah so but one thing we really wanted to do also was do inlines but differently with
HTMX. And so this is a tap of and it's again it's a to me super simple solution, just reusing admin
Speaker 1
stuff. You can see you can And it's yeah, it's just an inline and it we it's fairly easy to reuse with the mixins and stuff. Yeah, so there was a lot of things. And back to you know, what was intended. Well sometimes things can be
Speaker 3
used in a different way than they were intended.
Speaker 1
Personally I'd like to visit someone that had bubble wrap as wallpaper and you can go poke it.
Speaker 3
I hope That you get an impression of this sort of taking things apart and reusing them and sorting maybe looking a bit deeper. I think one of the things with the admin is that it there's a there's a lot of documentation but when as soon as you have to customize you have to actually look at the source code And so you do need to just go and but then it's fairly easy to understand and there's so much to also learn from it. Yeah.
Speaker 2
Yeah. Basically what we want to say here is you can go very fast with the admin tools. There there's a lot There's a lot to get into. There's a lot of code to read if you want to use it, because you wanna get fairly intimate with it. But otherwise there's a lot of good stuff.
Speaker 3
And just to
Speaker 1
to end, I think from a business perspective, what we ended up being able to do with the admin simply wouldn't have happened. At that time I had only done a little bit of Django Rest and so forth. But I think Still I think Carlton also mentioned it yesterday, you know you kind of need two teams and if nothing else you need to sort of break your brain into two teams. And for me, you know, you we got everything, we got the change list, we got add and update possibilities. kind of for free. And it really sort of made it all happen in the short time that it had.
June 5 - 9, 2024
Vigo, Spain
Note: We understand that names change, people change, and bodies change. We respect each individual's journey and privacy. If you have any concerns about a video or need us to remove content, please don't hesitate to contact us. We will handle your request with care and promptly address any issues.
Published October 26, 2026
Published October 26, 2026
Published October 26, 2026
Published October 26, 2026
Published October 26, 2026
Published October 26, 2026