Harry Potter actor Jamie Waylett has admitted growing drugs at his mum's house in north London.
Waylett, 19, appeared at Westminster Magistrates' Court on Thursday and said he had been growing 10 cannabis plants.
The chief magistrate said the case will take a break until 21 July. He added that he didn't know what sort of punishment would be given to Waylett.
Another man called John Innis appeared in court with Waylett. He admitted having a knife and 11 bags of cannabis.
Waylett and Innis were arrested when police spotted the pair taking photos of them.
The police looked at the other images on the camera and found pictures of the cannabis plants that Waylett had been growing.
That led them to his home, where they found the plants.
Waylett plays one of Draco Malfoy's pals, Vincent Crabbe, in the first six Harry Potter films.